<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <title>Punkte</title> </head> <body> <?php include_once "u_oop_punkt.inc.php"; $punkt1 = new Punkt(); echo "$punkt1<br>"; $punkt2 = new Punkt(3.5, 2.5); echo "$punkt2<br>"; $punkt3 = new Punkt(4); echo "$punkt3<br>"; $punkt4 = new Punkt(y: 1.5); echo "$punkt4<br>"; $punkt4->verschieben(4.5, 2); echo "$punkt4"; ?> </body> </html>