Visual Studio 2010和2008编辑器中的默认字体(及其大小)是多少?
I have two classes in separate folders
class Parent
{
public $path = null;
function __construct()
{
$this->path = __DIR__;
}
}
Run Code Online (Sandbox Code Playgroud)
and
class Child extends Parent
{
}
Run Code Online (Sandbox Code Playgroud)
So when I create an instance of Child:
$child = new Child();
echo $child->path
Run Code Online (Sandbox Code Playgroud)
I get a path to Parent. What I actually want is to get path to Child. I cannot modify Child class.
Is it possible?