posted 17 years ago
hi,In above code subclass Dog is able to inherit variable testInt, but it is not able to inherit method doStuff().When i try to compile above code i am getting error at doStuff() method call.Can you please explain what is difference between variable and method here.