public string GetMyCar(ICarDescription cmptype) { // No matter how many types of computer comes var myCar = cmptype.GetDescription(); return(myCar); }
public string IsThereAnyGiftItem(ICarDescription gftType) { return(GetMyCar(gftType)); }
public string WhatIsThecolorofGiftItem(ICarDescription cmptype) { return(GetAvailableColor(cmptype)); }
public string GetAvailableColor(ICarDescription cmptype) { var myCarcolor = cmptype.GetColor().ToString(); return(myCarcolor); }
public string GetMyComputerPrice(ICarDescription cmptype) { var myCarpprice = "Tena : " + cmptype.CalculatePriceAfterTax().ToString(); return(myCarpprice); }