• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

CMSC 132 exam 1(Correct answers)

Document preview thumbnail
Preview 1 out of 4 pages

abstraction correct answers a technique in which we provide a very high-level model of activity or data. Small details about the model's functionality are not specifies to the user. procedural abstraction correct answers in which the user is aware of what actions are being performed but they are not told how the action is performed. data abstraction correct answers in which various data objects are known to the user, but how they are represented or implemented is not known to the user. abstract data type (ADT) correct answers is an entity that has values and operations. An abstract data type is an implementation of interfaces (a set of methods) encapsulation correct answers -hiding implementation details while providing an interface for data access. -allows you to use code without having to know or understand its implementation -can make changes to code without the user being able to tell a difference interfaces correct answers - allows us to express an abstract data type (what is should do not how) - defines an is-a relationship -public class x implements y (x is a y) classes correct answers -instances of objects -implement an interface -extend other classes Subclasses correct answers these subclasses inherit functions from the original class, and this also defines an "is-a" relationship. Java collections framework correct answers is a set of methods and classes that provide support for collections, which are objects that group multiple elements into one unit. There is a collection interface that defines a set of methods that certain class must have. It turns out that ArrayList is in the collections framework, and it implements the set of required methods. Iterable interface correct answers defines a method called iterator, which returns an iterator that allows us to traverse a container. -IteratorT iterator() abstract classes correct answers -a child class inherits all of the methods from the parent class - is -a relationship -ex. student is a person but a person is not a student


Document information

Uploaded on
May 29, 2024
Number of pages
4
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.39

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
23
Followers
6
Items
4026
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.