Example #1
0
 public Obiekty(string nazwa, string rodzaj, Cena cena)
 {
     this.Nazwa  = nazwa;
     this.Rodzaj = rodzaj;
     NextId++;
     _id        = NextId;
     this._cena = cena;
 }
Example #2
0
 public bool EquealCena(Cena cena1, Cena cena2)
 {
     if (cena1 == cena2)
     {
         Console.WriteLine("Ceny są takie same !");
         return(true);
     }
     else
     {
         Console.WriteLine("Te produkty maja różna cene");
         return(false);
     }
 }
Example #3
0
 public Warzywko(string nazwa, string rodzaj, bool jestemWarzywem, int iloscMienralow, Cena cena)      : base(nazwa, rodzaj, cena)
 {
     this.JestemWarzywem = jestemWarzywem;
     this.IloscMineralow = iloscMienralow;
 }
Example #4
0
 public Owoc(bool jestemOwocem, int iloscWitamin, string nazwa, string rodzaj, Cena cena) : base(nazwa, rodzaj, cena)
 {
     this.JestOwocem   = jestemOwocem;
     this.IloscWitamin = iloscWitamin;
 }