InterviewSolution
Saved Bookmarks
| 1. |
How can a protected modifier be accessed?(a) accessible only within the class(b) accessible only within package(c) accessible within package and outside the package but through inheritance only(d) accessible by allThis question was addressed to me in a job interview.I would like to ask this question from Access Control in section Classes and Methods of Java |
|
Answer» The correct choice is (c) ACCESSIBLE within package and outside the package but through INHERITANCE only |
|