aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Threading and OOP Fundamentals
  • why constructor are used?
Multiple choice technology programming languages

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.

Reveal answer Fill a bubble to check yourself
D Correct answer

Keep practicing — related questions

  • Constructors are used to
  • What is the main purpose of using default constructor in a C++ program?
  • Which of the following types of constructor function should be used to initialise the various data elements...
  • Which of the following is not true about Constructors?
  • Which of the following types of constructor is used to initialize all objects of the same class to the same...
  • Constructors are used to
  • Which of the following are true about Constructors?
  • Which of the following are true about Constructors?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy