InterviewSolution
Saved Bookmarks
| 1. |
Which among the following best describes member functions?(a) Functions which are defined within the class(b) Functions belonging a class(c) Functions in public access of a class(d) Functions which are private to classThis question was addressed to me in semester exam.My query is from Member Functions topic in division Class Members & Types of Object Oriented Programming |
|
Answer» RIGHT CHOICE is (b) Functions belonging a class Explanation: We can’t say that only functions that are defined inside class are MEMBER functions. There can be some inherited functions. THOUGH they doesn’t belong to the class but are property of the objects once inheritance is USED. So the nearest definition is functions belonging to a class. |
|