download Mastguru Android App

Question Detail

Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above
Similar Questions :

1. What is data hiding ?

  • It is related with hiding internal object details
  • It is related with showing internal object details
  • It is related with datatypes
  • None of above

2. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class

3. & operator is ?

  • address operator
  • indirection operator
  • logical and
  • logical or

4. Constructors has return type void ?

  • True
  • False

5. When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class
Read more from - C++ Programming Questions Answers - Set 2
Post a comment