Real world Application of inheritance