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 default visibility mode while inheriting is ?

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

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

3. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

4. Inheritance is transitive in nature.

  • True
  • False

5. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared
Read more from - C++ Programming Questions Answers - Set 2