Question OOP-CLS-0011
MediumIn C++, how do a class and a struct differ?
- A.
There is no difference at all
- B.
Members of a class are private by default; members of a struct are public by default
- C.
A class cannot have data members
- D.
A struct cannot have methods
Sign up free to see the answer and a step-by-step explanation.