download Mastguru Android App

Question Detail

How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}
Similar Questions :

1. Which is boolean operator for logical and

  • &
  • ||
  • &|
  • &&

2. Which is not a correct variable type

  • float
  • int
  • double
  • real

3. Which arithmetic operation can be done in pointer

  • Multiplication
  • Division
  • Addition
  • None of above

4. Stack unwinding deals with

  • deals with polymorphism
  • deals with inheritance
  • deals with exception handing
  • deals with classes

5. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment