abschreiben nicht fertig
This commit is contained in:
@@ -40,7 +40,7 @@ class Lehrer {
|
|||||||
public function ausgeben():void{
|
public function ausgeben():void{
|
||||||
echo "<p>Lehrer: $this->vorname</p><br>";
|
echo "<p>Lehrer: $this->vorname</p><br>";
|
||||||
echo "<p>Lehrer: $this->nachname</p><br>";
|
echo "<p>Lehrer: $this->nachname</p><br>";
|
||||||
echo "<p>Gehaltsstufe: $this->gehaltsstufe </p><br>";
|
echo "<p>Gehaltsstufe: A$this->gehaltsstufe </p><br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
15
progp/25-2-19/lehrerclasses.php
Normal file
15
progp/25-2-19/lehrerclasses.php
Normal 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>
|
||||||
Reference in New Issue
Block a user