예제 #1
0
 public override double cena()
 {
     if (car is Mercedes)
     {
         return(car.cena() + 100000);
     }
     else if (car is Fiat)
     {
         return(car.cena() + 20000);
     }
     return(0);
 }
예제 #2
0
 /* niech ceny beda takie same */
 public override double cena()
 {
     return(car.cena() + 31234);
 }