A java program that implement interfaces and polymorphism