<?php
abstract class bob{
function __contruct(){
$myitem = 25;
}
public $myitem;
}
class john extends bob{
public function GetItem(){
echo parent::$myitem;
}
}
$j = new john();
$j->GetItem();
Fatal error: Uncaught Error: Access to undeclared static property bob::$myitem in /in/jYgat:15
Stack trace:
#0 /in/jYgat(20): john->GetItem()
#1 {main}
thrown in /in/jYgat on line 15
Process exited with code 255.
Fatal error: Uncaught Error: Access to undeclared static property: bob::$myitem in /in/jYgat:15
Stack trace:
#0 /in/jYgat(20): john->GetItem()
#1 {main}
thrown in /in/jYgat on line 15
Process exited with code 255.