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. Operator overloading is ?

  • giving new meaning to existing c++ operators
  • making c++ operators work with objects
  • giving c++ operators more than they can handle
  • making new c++ operators

2. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

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

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution

4. Destructors are called ?

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

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