Example #1
0
 internal KontoBiznes(Klient klient, string numer, decimal saldoPoczatkowe, decimal debet, Stawki stawki) :
     base(klient, numer, saldoPoczatkowe)
 {
     _stawki = stawki;
     if (debet < 0)
     {
         throw new Exception("Niewłaściwa kwota debetu");
     }
     Debet = debet;
 }
Example #2
0
 internal KontoStudent(Klient wlasciciel, string numer, decimal saldoPoczatkowe, Stawki stawki) : base(wlasciciel, numer, saldoPoczatkowe)
 {
     Wlasciciel = wlasciciel;
     Numer      = numer;
     if (saldoPoczatkowe < 0)
     {
         throw new Exception("");
     }
     saldo = saldoPoczatkowe;
 }