• 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 2 out of 7 pages
Exam (elaborations)

CMSC132(Complete solutions)

Document preview thumbnail
Preview 2 out of 7 pages

Abstraction provides correct answers high level model of activity Procedural abstraction correct answers Specifies actions performed hides algorithms Data abstraction correct answers Specifies data objects for the problem Hides implementations Encapsulation correct answers hides implementation details while providing interface (methods) for data access allows us to use code without knowing its implementation makes debugging and code modification simple Interface correct answers Set of abstract methods Specifies a contract for a class to implement Class correct answers implements/defines contract Collection correct answers groups multiple elements into one object Inheritance correct answers - Process in which a derived class (subclass) is created from a base class (superclass) - inherits all the superclass methods and instance variables that are marked protected or public Creates a hierarchical structure for a group of objects, avoids code duplication Shadowing correct answers Overriding variables in subclasses Inheritance and private correct answers All private data is inherited by subclasses However, private members of a superclass cannot be accessed directly When an object/method is marked protected it is accessible by... correct answers - any subclasses - any class in the same package The class Object has these methods... correct answers equals(Object other) toString() Late (dynamic binding) correct answers method that is called depends on the objects actual type, not the declared type of the reference variable Java uses late binding Provides more flexibility Overloading correct answers Writing multiple methods of the same name with different number of parameters/parameter types


Document information

Uploaded on
May 28, 2024
Number of pages
7
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.69

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.