如何在$myVar
中提取ParentClass
摘要?
<?php
abstract class ParentClass
{
public $myVar; //Make this abstract
abstract public function get();
public function someMethod() {}
}
class childClass extends ParentClass
{
public $myVar = 123;
public function get(){}
public function someOtherMethod() {}
}