Examveda

Which of the following is correct in C++?

A. Classes cannot have protected data members

B. Structures can have member functions

C. Class members are public by default

D. Structure members are private by default

Answer: Option B


Join The Discussion

Related Questions on Introduction to C plus plus