Vidyalelo
C++ Programming · Q96

Introduction to C++

Programming · C++ Programming · question 96

Q96

Which of the following is correct in C++?

A.
Classes cannot have protected data members
B.
Structures can have member functions
Answer
C.
Class members are public by default
D.
Structure members are private by default

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board