In a class definition, data or functions designated private are accessible
A) to any function in the program.
B) only if you know the password.
C) to member functions of that class.
D) only to public members of the class.
Correct Answer:
Verified
Q7: What is a constructor?
A)a class automatically called
Q8: Under what conditions a destructor destroys an
Q9: When class B is inherited from class
Q10: Which one of the following is not
Q11: Variables declared in the body of a
Q13: A member function can always access the
Q14: Classes are useful because they
A)can closely model
Q15: For the object for which it was
Q16: Dividing a program into functions
A)is the key
Q17: An expression
A)usually evaluates to a numerical value.
B)may
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents