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. What is getline() in c++

  • getline() extract the delimeter newline character from the input stream
  • getline() does not extract the delimeter newline character from the input stream
  • None of above

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

  • Virtual class
  • Abstract class
  • Singleton class
  • Friend class

4. Which operator is used for comparing two variables

  • :=
  • =
  • =:
  • ==

5. Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment