Is it compulsory to have abstract methods in abstract class code example
Example 1: is it necessary for abstract class to have abstract method
No, abstract class can have zero abstract methods.
Example 2: Is it mandatory for an abstract class to have abstract methods?
No, abstract class can have zero abstract methods.