How to define the class field available only to its sub-classes in Java?
1
Expert's answer
2010-09-14T12:19:27-0400
You have to specify the keyword «protected» while declaring the variable. After that the variable will be "visible" only to sub-classes.
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment