why constructor are used?

  1. To initialize the data members.

  2. To allocate memory for object.

  3. To initialize the member functions.

  4. To initialize the object.


Correct Option: B

Find more quizzes: