InterviewSolution
Saved Bookmarks
| 1. |
Objects can be used _____________________(a) To access any member of a class(b) To access only public members of a class(c) To access only protected members of a class(d) To access only private members of a classThe question was asked in an internship interview.The query is from Object Use in section Object of Object Oriented Programming |
|
Answer» CORRECT option is (b) To access only public MEMBERS of a class For explanation: The objects are created for a specific class. Then the objects can be used to access the public members of a class. The members can be the DATA members or the member FUNCTIONS of the class. |
|