Home / MCQ Bank / Computer
Computer Constructors And Destructors In C Plus Plus

What is the role of a constructor in classes?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • To initialize the data members of an object when it is created

Related Computer Questions

Which function is used to change the size of an allocated block of memory in C? Which of the following is not pre defined annotation in Java? What should we add to a template in Dreamweaver in order to control where page content goes? What is the primary goal of a pair plot (scatter plot matrix) in EDA? Which language is used in the areas of pattern recognition, artificial intelligence & for simulation of games.