download Mastguru Android App

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. Which class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above

3. 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

4. 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

5. C++ programs must contain

  • start()
  • system()
  • main()
  • program()
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment