public double getDiscountedPrice(CarModel objCarModel)
        {
            switch(objCarModel.getModel())
            {
                case "TYPE_C":
                  Price =  0.9 * Price;
                    break;
                default :
                    break;

            }
            return Price;
        }
 public override double getListedPrice(CarModel objCarModel)
 {
     switch (objCarModel.getModel())
     {
         case "TYPE_A":
             Price = type_A_price;
             break;
         case "TYPE_B":
             Price = type_B_price;
             break;
         case "TYPE_C":
             Price = type_C_price;
             break;
         default: break;
     }
     return Price;
 }