class Foo
{
public $my_prop = '';
}
class Bar extends Foo
{
protected $my_prop = 'bleh';
}
Why can't I do this in php? I can't think of a reason you "should not"
be allowed to do this.
Thanks, Tony
class Foo
{
public $my_prop = '';
}
class Bar extends Foo
{
protected $my_prop = 'bleh';
}
Why can't I do this in php? I can't think of a reason you "should not"
be allowed to do this.
Thanks, Tony