<?php
    
class Bedroom {
        protected 
$action;

        function 
__construct() {
            
$this->action 'fun';
        }

        protected function 
peek() {
            echo 
$this->action"\n";
        }
    }

    class 
Keyhole extends Bedroom {
        function 
peek() {
            echo 
$this->action"\n";
        }
    }

    
$kh = new Keyhole();
    
$kh->peek();

    
$br = new Bedroom();
    
$br->peek();           /* Doesn't work */
? >