download Mastguru Android App

Question Detail

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

  • virtual
  • public
  • static
  • private
Similar Questions :

1. What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.

2. Inheritance is transitive in nature.

  • True
  • False

3. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

4. The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static

5. Can we define array of classes in c++ ?

  • Yes
  • No
Read more from - C++ Programming Questions Answers - Set 2
Post a comment