SyntaxFix
Write A Post
Hire A Developer
Questions
For overloading you'd need a subclass:
class ChildTestclass extends Testclass { public $testvar = "newVal"; } $obj = new ChildTestclass(); $obj->dosomething();
This code would echo newVal.
newVal