download Mastguru Android App

Question Detail

How to define a destructor

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

1. Can #define accept parameters

  • Yes
  • No

2. All members of class have which access to its members

  • private
  • public
  • protected
  • depends

3. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

4. What is polymorphism

  • Ability to take more than one form
  • Ability to destroy destructor
  • Ability to create constructor
  • None of above

5. Which of the following type of class allows only one object of it to be created

  • Virtual class
  • Abstract class
  • Singleton class
  • Friend class
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment