Question Detail

What is actual syntax of destructor in c++ ?

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

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

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

2. The process of deriving a class from another derived class is known as ?

  • single inheritance
  • dual inheritance
  • multiple inheritance
  • multilevel inheritance

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. The members of a class are ?

b) by default are private
c) are made private by declaring as private
d) none of the above]

  • have no visibility by default
  • public by default
  • private by default
  • protected by default

5. Queues are based on ?

  • LIFO
  • FIFO
  • LILO
  • FILO
Read more from - C++ Programming Questions Answers - Set 2