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 the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File

2. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember

3. Can we define array of classes in c++ ?

  • Yes
  • No

4. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above

5. What is object in C++ ?

  • Object is part of syntax of a class.
  • Object is datatype of a class.
  • Object is an instance of a class.
  • Object is function of a class.
Read more from - C++ Programming Questions Answers - Set 2