From 3629ce4570cd03bcfa496e84c1ef9978f2a9d684 Mon Sep 17 00:00:00 2001 From: danielvici123 <94993276+danielvici@users.noreply.github.com> Date: Wed, 2 Apr 2025 11:56:05 +0200 Subject: [PATCH] Update a2_klassen.php --- progp/25-4-2 - oop/a2_klassen.php | 1 + 1 file changed, 1 insertion(+) diff --git a/progp/25-4-2 - oop/a2_klassen.php b/progp/25-4-2 - oop/a2_klassen.php index 5395ae6..d79d1e6 100644 --- a/progp/25-4-2 - oop/a2_klassen.php +++ b/progp/25-4-2 - oop/a2_klassen.php @@ -50,6 +50,7 @@ class teilzeit extends mitarbeiter { public function __construct(string $n, string $gb, int $g, int $hpw, int $sl) { parent::__construct($n, $gb, $g); + $this->arbeitszeit = $hpw; $this->gehalt = $this->gehalt + ($hpw * $sl * 4); // 4 Wochen pro Monat $this->stundenlohn = $sl; }