Question Detail

Default constructor has how many arguments

  • 1
  • 2
  • 3
  • 0
Similar Questions :

1. What is inheritance

  • Inheritance allows one class to reuse the state and behavior of another class.
  • It deals with dangling pointers
  • It deals with void pointers
  • It is type of class declaration

2. How we define our name for constants

  • #constant
  • #define
  • #define_constant
  • #constant_define

3. How to define a destructor

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

4. Dereference operator is also called as

  • pointer
  • Reference operator
  • Offset operator
  • Deoffset operator

5. Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited
Read more from - C++ Programming Questions Answers - Chapter 1