A simple example for object-oriented programming in Javascript to demonstrate polymorphism and inheritance.