← Quiz: C++ Classes and Objects: all 10 questions
Quiz: C++ Classes and Objects · Question 1 of 10
What is the default access level of members in a C++ class?
What is the default access level of members in a C++ class?
- A.private
- B.public
- C.protected
- D.internal
Answer & explanation
Correct answer: private
class defaults to private; struct defaults to public.
Can you get the rest right without peeking?
Take the timed Quiz: C++ Classes and Objects quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →