The ability of class to derive properties from a
previously defined class is called
a) encapsulation
b) inheritance
c) polymorphism
d) information hiding
Polymorphism refers to as……
a) process of returning data from function
b) specialization of classes
c) use of class to represent object
d) packing of data defining
Which of the following is the correct syntax for calling a base class constructor in abstract class constructor?
a) DeriveClass::DeriveClass(){BaseClass();}
b) DeriveClass::BaseClass(){DeriveClass();}
c)DeriveClass::DeriveClass():BaseClass(){}
d) DeriveClass::BaseClass():DeriveClass(){}
What is another name for child class?
a) derive class
b) sub class
c) descendant class
d) all of these
What is other term used for base class?
a) parent class
b) ancestor class
c) super class
d) all of these
A class that inherits the members of other class is called……
a) base class
b) super class
c) abstract class
d) sub class