You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
I'm new in java and OOP, can you help me?
I have this question
Do Abstract methods inherited automatically by any extending class? and if they do, even when I declare them as private?
abstract methods are implemented by the extending class. i think your not understanding abstract methods. they basically define a contract between the parent and children object. if i declare a method in the parent class as abstract, i define the signature of that method. all subclasses will be required to implement the abstract method or be defined as an abstract class (since it doesn't implement the abstract method).