InterviewSolution
Saved Bookmarks
| 1. |
In java, which rule among the following is applicable?(a) Keyword public can’t be preceded with all the public members(b) Keyword public must be preceded with all the public members(c) Keyword public must be post mentioned the function declaration(d) Keyword public is not mandatoryI have been asked this question in an internship interview.My question is based upon Public Member Functions in chapter Member Functions & its Types of Object Oriented Programming |
|
Answer» The correct ANSWER is (b) Keyword PUBLIC must be preceded with all the public members |
|