• 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 15 pages
Exam (elaborations)

CMSC FINAL UPDATED ACTUAL Questions and CORRECT Answers

Document preview thumbnail
Preview 2 out of 15 pages

CMSC FINAL UPDATED ACTUAL Questions and CORRECT Answers

Content preview

CMSC FINAL UPDATED ACTUAL Questions and CORRECT Answers

1. Inheritance is the process by which one new class, derived
called the class

2. Derived class is created from another class, called the base
class

3. The derived class is also called: or class subclass, child

4. The base class is also called: superclass or parent class

5. Derived Class should have all the and that Methods and instance
Base Class has. variables

6. Derived Class can define new instance variables and True
new methods

7. Extends Syntax public class derivedClass
extends baseClass { ... }

8. Derived Class Base Class is a

9. When initializing a new Student object, we need to base class
initialize its

10. SubClass objects inherit all the private data True

11. Private members of the base class cannot be accessed True
directly

12. When a class element (instance variable or method) derived
is declared to be protected (rather than public or pri- package
vate) it is accessible:
To any class (and hence to all descendents), and
To any class in the same

, 13. Package: When a class element is not given any access modifier
(private, public, protected) it is said to have pack- package
age access.

It is accessible: To any class in the same

14. When should a person use public? public interface
Methods of the object's Constant
instance variables (static final)

15. When should a person use private? Instance variables
(other than constants) helper/utility methods
Internal (not intended for use except in this
class)

16. Protected/Package: Internal helper/utility
methods (for use in this class and related class-
es)

17. A class at the top of the hierarchy, called . Object

18. The class Object has no i , but defines a number Instance variables
of methods

19. Late (or dynamic) binding: method that is called de- actual type
pends on an object's declared type
, and not the of the referring variable

20. Java's makes it possible for a single reference late binding
variable to refer to objects of many different types polymorphic

21. getClass( ): Returns a of the class of any object representation

22. operator

Document information

Uploaded on
October 26, 2025
Number of pages
15
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

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.
STANFORDGRADESS
4.0
(241)
Sold
1674
Followers
109
Items
121810
Last sold
2 hours 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