Example Java Program Using Inheritance