download Mastguru Android App

Question Detail

What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )
Similar Questions :

1. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null

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

3. The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor

4. Classes in c++ are ?

  • Fundamental data type
  • Primitive data type
  • Desired data type
  • Not defined

5. Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private
Read more from - C++ Programming Questions Answers - Set 2
Post a comment