What is called by a class serving only as a base class for other classes and no objects of which are created?
Abstract class
Base class
Derived class
Containership
What is the relationship of two classes such that the objects of a class enclosed within the other class?
Which of the following is the combination of two or more forms of inheritance?
Hybrid inheritance
Single inheritance
Multiple inheritance
Multilevel inheritance
Which of the following means the methods of a class?
Data
Member functions
Classes
Objects
What is the most important advantage of inheritance?
Reusability
Overloaded function
Overloading
Initialization of object
Consider the following code:Class A { char g; protected: int x, y; public: int z; }; class B: public A { int a, b, c; };From the above inheritance hierarchy, how many data members does class B have?
7
6
5
4
New class or classes can derive from an existing class. The existing class is called _________
Subclass
Child class
Which of the following is not an OOP characteristic?
Inheritance
Polymorphism
Abstraction
Nesting of class
What is the advantage of reusability?
Faster development time
Easier maintenance
Easy to extend
All these
How can we define the relationship between base and derived classes?
Inheritance hierarchy
Multiple hierarchy
Hierarchical inheritance
Multi level inheritance