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. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above

2. The members of a class are ?

b) by default are private
c) are made private by declaring as private
d) none of the above]

  • have no visibility by default
  • public by default
  • private by default
  • protected by default

3. Constructors has return type void ?

  • True
  • False

4. The default visibility mode while inheriting is ?

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

5. The symbol ** __ .

  • can be overloaded by changing its datatype.
  • cannot be overloaded, as on overloading its meaning shall be changed.
  • can be overloaded.
  • cannot be overloaded as it is not a C++ operator.
Read more from - C++ Programming Questions Answers - Set 2
Post a comment