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. Default constructor has how many arguments

  • 1
  • 2
  • 3
  • 0

2. C++ programs must contain

  • start()
  • system()
  • main()
  • program()

3. Which arithmetic operation can be done in pointer

  • Multiplication
  • Division
  • Addition
  • None of above

4. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>

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

  • 1 byte
  • 2 byte
  • 4 byte
  • 8 byte
Read more from - C++ Programming Questions Answers - Chapter 1