Saved Bookmarks
| 1. |
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 defaultI have been asked this question during an online exam.I'd like to ask this question from OOPs Concept topic in section Basics Concepts of C++ of C++ |
|
Answer» Right option is (b) STRUCTURES can have MEMBER functions |
|