download Mastguru Android App

Question Detail

The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor
Similar Questions :

1. Even if we define a function in a class, then also we need to declare it first.

  • True
  • False

2. When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class

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

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

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

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

  • Private
  • Public
  • Protected
  • Depends
Read more from - C++ Programming Questions Answers - Set 2
Post a comment