Anonymous
public text v1 · immutable<?php
class window {
protected $hasMenubar = false;
protected $hasToolbar = false;
protected $hasStatusbar = false;
public function __construct(){
if ($this->hasMenubar) {
echo "hasMenubar : ture\n";
}
if ($this->hasToolbar) {
echo "hasToolbar : ture\n";
}
if ($this->hasStatusbar) {
echo "hasStatusbar : ture\n";
}
}
}
class new_window extends window {
protected $hasToolbar = true;
}
?>