<?php
class Bedroom {
private $action;
function __construct() {
$this->action = 'fun';
}
}
$br = new Bedroom();
echo $br->action. "\n";
? >
Fatal error: Cannot access private property bedroom::$action in - on line 12