What is the main purpose of a class constructor function?
A. to destruct the class when the program ends.
B. to create object and initialize class data when called in main or in another function.
C. to reserve memory for all program variables.
D. To run all of the member functions.
B
Computer Science & Information Technology
You might also like to view...
When you compile your program, the compiler identifies the logic errors and suggests how to correct them.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
Input is data that goes into a computer.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology