Question Detail

Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private
Similar Questions :

1. What is object in C++ ?

  • Object is part of syntax of a class.
  • Object is datatype of a class.
  • Object is an instance of a class.
  • Object is function of a class.

2. Inheritance is transitive in nature.

  • True
  • False

3. Destructors are called ?

  • not defined
  • in any order
  • in the reverse order of constructor calls
  • in the same order of constructor calls

4. Inheritance is referred to as

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

5. 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
Read more from - C++ Programming Questions Answers - Set 2