This may be a useless question, Just out of my curiosity.
Why are we forced to add a keyword abstractbefore abstract methodfrom abstract classwhen we do not need to add a keyword in the case interface?
Possible answer:
As an abstract class, there may be a combination of concrete and abstract methods, the keyword "abstract" is used to determine which method is abstract.
But
when we do not give any body to any methods and use it ;at the end of the declaration, then what could go wrong if it is automatically considered as an abstract method?
source
share