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 variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

2. In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above

3. 37. Which of the following statements is false ?

  • Using typedef does not replace the standard C++ data type name with the new name
  • The new name defined by typedef, can be used as a type for another typedef
  • typedef defines new data types
  • None of the above

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

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

5. Queues are based on ?

  • LIFO
  • FIFO
  • LILO
  • FILO
Read more from - C++ Programming Questions Answers - Set 2