I want an example [coding example] to show the difference between an abstract class and an interface. Use the comparison table attached to fulfill the requirements. This means you have to implement a project with three classes:
1. Abstract class
2. Interface
3. Main application that extends the abstract class and implements the interface.
Interfaces vs. Abstract Classes
Abstract Class
Interface
An abstract class can extend only one abstract class at a time.
An interface can extend any number of interfaces at a time.
An abstract class can extend another concrete (regular) class or abstract class.
An interface can only extend another interface.
An abstract class can have both abstract and concrete methods.
An interface can have only abstract methods.
In an abstract class, the keyword "abstract" is mandatory to declare a method as abstract.
In an interface, the keyword "abstract" is optional to declare a method as abstract.
An abstract class can have protected and public abstract methods.
An interface can only have public abstract methods.
An abstract class can have static, final, or static final variables with any access specifier.
An interface can only have public static final constant variables.