I continue
echo "Tell me private stuff: ".$stefan->pinn_number;
Hey you said direct accessing is a no-go!
But I understand it's for the sake of visualization of access errors - which brings the next question: even though $pinn_number is a private property I can display it with a public get method on index.php which, according to my understanding, is outside the class. I thought for this I should do sg like copying the private property value to a public property (e.g. "$pub_pinn") but looks like I can do without. What am I missing here?