Commit 80604106 by Patryk Czarnik

Pracownik bez nadgodzin

parent e5a41da0
...@@ -13,7 +13,9 @@ public class Pracownik { ...@@ -13,7 +13,9 @@ public class Pracownik {
} }
int wyplata() { int wyplata() {
return suma_godzin * stawka; int wyplata = suma_godzin * stawka;
suma_godzin = 0;
return wyplata;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment