A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Java in General
protected methods and classes in package
Joined: Oct 12, 2001
Oct 15, 2001 15:17:00
Any body tell me about protected methods and classes in package
that How can i use protected methods and classes.
I know in polymorphysim that how protected method is using of overriding.
if any body can help me.
Joined: Nov 06, 2000
Oct 16, 2001 06:52:00
Protected attributes/methods can be accessed (if the class is accesible) from classes/methods in the same package and by subclasses. I am not sure what more you need to know.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: protected methods and classes in package
protected and private class
Why paint() method in CustomItem class is PROTECTED ?
accessing members of an inner class
Constructors and interfaces
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014