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. 78. If new operator is used, then the constructor function is ?

  • Copy constructor
  • Default constructor
  • Static constructor
  • Dynamic constructor

2. What is default visibility mode for members of classes in C++ ?

  • Private
  • Public
  • Protected
  • Depends

3. 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

4. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

5. Which of the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File
Read more from - C++ Programming Questions Answers - Set 2