Question: Which of the following statements is correct?
Options
A : Data items in a class must be private.
B : Both data and functions can be either private or public.
C : Member functions of a class must be private.
D : Constructor of a class cannot be private.
Objects and Classes - General Questions more questions
Constructor is executed when _____.
Which of the following statements about virtual base classes is....
How many objects can be created from an abstract class?
What does the class definitions in following code represent?
Which of the following statements is correct when a class....
What does a class hierarchy depict?
Which of the following can be overloaded?
Which of the following means "The use of an object....
Which of the following is the only technical difference between....
Which of the following statements is correct about the program....
Constructors and Destructors - General Questions more Online Exam Quiz
Constructors and Destructors - General Questions
OOPS Concepts - General Questions