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. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

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

  • virtual
  • public
  • static
  • private

3. Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined

4. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above

5. Stacks are based on ?

  • FIFO
  • LIFO
  • FILO
  • All of above
Read more from - C++ Programming Questions Answers - Set 2