PHP-Code in zwei_wege/02_step/class/ExampleWithObject.class.php

<?php
class ExampleWithObject {

	public $name = "Paulo Objectivo";

    public function sayHello() {
        $str = "Hallo<br>";
        $str .= "Mein Name ist: ";
        $str .= $this -> name;
        
        return $str;
    }
}
?>