I am Studying PHP and i was thinking,
Methods inside Abstract Class or Interface is called abstract methods.
My Question:
Are Abstract methods defined inside Abstract Class/Interface is Not included inside the subclass?
If it's true it means that:
What only inside the subclass is the methods/properties not defined as abstract, what means that interfaces cant creat subclass when being implement.
Also means:
That when abstract method defined from abstract class/interface the class that extends/imploment the abstract class/interface is only take a look at the methods signatures and ensure that those methods was being overriding(witch not really overiding, rewrite is a better word to say(Although i hear overriding)).
If can some one please help me understand professionally the abstract methods, have a nice Day.
An abstract class is simply a class that contains one or more abstract methods. An abstract class can not be instantiated because it is basically incomplete. It serves as a kind of blueprint for its subclasses.
An abstract method is one that is not fully defined. It has a signature but no implementation. The implementation must be done in the subclass. A subclass automatically inherits any non-abstract methods but the abstract ones must be implemented.