download Mastguru Android App

Question Detail

what is a class in c++

  • Class in a collection of objects
  • Class has noting to do with object
  • It just have declaration of few variables
  • None of above
Similar Questions :

1. If value has not type, then the pointer pointing to this value will be known as

  • Empty pointer
  • Null pointer
  • Void pointer
  • None of above

2. Can we overload constructors in C++

  • Yes
  • No

3. Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above

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

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

5. Declaring pointer more than one can cause

  • Trap
  • abort a program
  • error
  • none of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment