Exemple #1
0
        public string GetMyCar(ICarDescription cmptype)
        {
            // No matter how many types of computer comes
            var myCar = cmptype.GetDescription();

            return(myCar);
        }
Exemple #2
0
 public string IsThereAnyGiftItem(ICarDescription gftType)
 {
     return(GetMyCar(gftType));
 }
Exemple #3
0
 public string WhatIsThecolorofGiftItem(ICarDescription cmptype)
 {
     return(GetAvailableColor(cmptype));
 }
Exemple #4
0
        public string GetAvailableColor(ICarDescription cmptype)
        {
            var myCarcolor = cmptype.GetColor().ToString();

            return(myCarcolor);
        }
Exemple #5
0
        public string GetMyComputerPrice(ICarDescription cmptype)
        {
            var myCarpprice = "Tena : " + cmptype.CalculatePriceAfterTax().ToString();

            return(myCarpprice);
        }