A quick demonstration of inheritance and polymorphism in Java