download Mastguru Android App

Question Detail

What is actual syntax of destructor in c++ ?

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

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

  • virtual
  • public
  • static
  • private

2. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

3. What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.

4. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class

5. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;
Read more from - C++ Programming Questions Answers - Set 2
Post a comment