Question Detail

Constructor is

  • A class automatically called whenever a new object of this class is created
  • A class automatically called whenever a new object of this class is destroyed
  • A function automatically called whenever a new object of this class is created
  • A function automatically called whenever a new object of this class is destroyed
Similar Questions :

1. Meaning of STL

  • Standard Tree Library
  • Standard Term Library
  • Standard Template Library
  • None of above

2. Which of the following functions below can be used Allocate space for array in memory

  • calloc()
  • malloc()
  • realloc()
  • All of above

3. Can #define accept parameters

  • Yes
  • No

4. Dereference operator is also called as

  • pointer
  • Reference operator
  • Offset operator
  • Deoffset operator

5. Reference is like a

  • Pointer
  • Structure
  • Array
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1