Home / MCQ Bank / Computer
Computer Classes And Objects In C Plus Plus

What is the purpose of using constructors in C++?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • To initialize the object's data members

Related Computer Questions

Locks placed by command are called ________ . Which of the following improves a query's processing time? Which one of the following key is used to refresh the active window? Say we have two compare two strings which of the following function/functions can you use? 1. strcmp() 2. strcasecmp() 3. strspn() 4. strcspn() Determine Output: void main() { static char *s[] = {"black", "white", "yellow", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s",*--*++p + 3); }