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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment