posted 13 years ago
First please forgive me for the class names and the method names.
'My doubt is in class A the method "print" is declared protected .
So when class B inherits the Class A the method "print" becomes private in class B.
then when i execute B b=new B(); b.print(); in line 1 the sompiler must throw an error saying trying to access a private method.
But this code executed perfectly.
Please tell me what i have missed.
To err is human,
To forgive is not company policy