posted 15 years ago
When a class extends some other class i.e. inherits some other class, then the member of parent class invariably become part of sub class.
But, the visibility of the members depends on the access specifiactions e.g public, protected, private ...
Same is true for static variables. But, as only one single copy of static variables exists across the application. So, the same copy is shared for the sub classes.