Question Detail

Can we overload constructors in C++

  • Yes
  • No
Similar Questions :

1. Difference between static and dynamic memory allocation is

  • In static memory allocation memory to be allocated in preknown
  • In dynamic memory allocation memory to be allocated in preknown
  • There is no differnece
  • Not exact difference is mentioned

2. what is the size of int datatype for 32 bit system

  • 1 byte
  • 2 byte
  • 4 byte
  • 8 byte

3. Meaning of deed copy is

  • A deep copy creates a copy of the dynamically allocated objects too
  • A deep copy just copies the values of the data as they are
  • A deep copy creates a copy of the statically allocated objects too
  • Both A and C

4. Which class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above

5. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}
Read more from - C++ Programming Questions Answers - Chapter 1