예제 #1
0
 public override double GetPrice()
 {
     return(m_Price + m_BaseComponent.GetPrice());
 }
예제 #2
0
 public override decimal GetPrice()
 {
     return(_price + _baseComponent.GetPrice());
 }
예제 #3
0
 static void PrintProductDetails(BakeryComponent bakeryComponent)
 {
     Console.WriteLine("Item: {0}, Price: {1}\n", bakeryComponent.GetName(), bakeryComponent.GetPrice());
 }
예제 #4
0
 private static void PrintProductDetails(BakeryComponent cBase)
 {
     Console.WriteLine("Item: {0} Price: {1}", cBase.GetName(), cBase.GetPrice());;
 }