download Mastguru Android App

Question Detail

66. A constructor function is generally defined

  • In the private section of a class
  • In the public section of a class
  • In the protected section of a class
  • None of the above
Similar Questions :

1. The advantage of declaring a virtual function as pure is
?

  • programs runs faster
  • early binding can be achieved
  • you force any derived class to define its own implementation
  • you can avoid making the class an abstract class

2. Constructors has return type void ?

  • True
  • False

3. Explicit call to a constructor means ?

  • Not providing the construction name at all
  • Is the shorthand method
  • Providing the constructor name explicitly to invoke it
  • Providing the constructor name implicitly to invoke it

4. Which among following is not a valid visibility mode in c++ program ?

  • Private
  • Public
  • Protected
  • Limited

5. The derived class constructor

  • never passes any values to base class constructor
  • can pass arguments only to one base class constructor function
  • is responsible for passing the entire test of arguments needed by base class constructors
  • none of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment