download Mastguru Android App

Question Detail

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
Similar Questions :

1. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

2. When a derived class inherits from many base classes, this process is known as ?

  • multiple inheritance
  • multilevel inheritance
  • default inheritance
  • multiplex inheritance

3. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

4. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

5. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution
Read more from - C++ Programming Questions Answers - Set 2
Post a comment