I'm Currently reading Head First Java, I'm learning about abstract classes and methods, it's all making wonderful sense at the moment but one thing is puzzling me.
The book states that if declaring an abstract method in an abstract class then this method must be overridden by any of the sub-classes, which initially made sense when i learned that abstract methods have no body, my question then is this:
If an abstract method has no body and must also be overridden by any sub-classes, what is the point in declaring an abstract method in the first place, the programmer still has to create the overridden method in each and every sub-class, so why not just forget about the abstract method which has no body anyway, thus alleviating the need to override, it just seems like less code to type or if looking at it the other way more code to type??
Thanks.
D.