Answer to Question #630 in Java | JSP | JSF for Tom

Question #630
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.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS
paypal