Interfaces, Polymorphism and Packages
April 15th, 2016
Interface Example
The following program demonstrates a practical use
of interfaces in the context of a simple paint program
that features a simple Graphical User Interface (GUI).
Key Points
- public interface iName
- public class className implements iName
- In an interface, you can declare constants and then abstract methods
- Polymorphism occurs when one method behaves differently when called
in the context of different class instances