abschreiben nicht fertig

This commit is contained in:
danielvici123
2025-02-19 11:38:32 +01:00
parent e6b29da5d7
commit fda487fee5
2 changed files with 16 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ class Lehrer {
public function ausgeben():void{
echo "<p>Lehrer: $this->vorname</p><br>";
echo "<p>Lehrer: $this->nachname</p><br>";
echo "<p>Gehaltsstufe: $this->gehaltsstufe </p><br>";
echo "<p>Gehaltsstufe: A$this->gehaltsstufe </p><br>";
}

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
require_once "lehrerclass.php";
$l = new Lehrer("Michael", " Staudt", 13);
$l->ausgeben();
?>
</body>
</html>