Question Detail

Can we overload constructors in C++

  • Yes
  • No
Similar Questions :

1. How to define a destructor

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

2. Which among following has invalid syntax ?

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

3. cout is declared in the _____ standard file within the std namespace

  • outstream
  • stdin
  • iostream
  • None of above

4. Default constructor has how many arguments

  • 1
  • 2
  • 3
  • 0

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