CSIT 211 Advanced Programming
Chapters 8,9, 11, 12, 17 Questions and
Correct Answers/ Latest Update / Already
Graded
The process of inheritance should establish a(n) ___________________
relationship.
Ans: a) is-a
b) has-a
c) static
d) not-a
e) none of the above
2) The original class that is used to derive a new class using inheritance
is called ____________________ .
a) a superclass
b) a parent class
c) a base class
d) all of the above
e) neither a, b, nor c
Ans: d) all of the above
All rights reserved © 2025/ 2026 |
, Page |2
The derived class created using inheritace is called
______________________ .
a) a child class
b) a superclass
c) a parent class
d) all of the above
e) neither a, b, nor c
Ans: a) a child class
In order for derived classed to have access to encapsulated data
members and methods of superclasses, the data members and
methods should be declared using the ____________________
modifier.
a) private
b) public
c) protected
d) final
e) static
All rights reserved © 2025/ 2026 |