Hello. There is a code
class class1{ public $name='string'; } class class2 extends class1{ function __construct(){ self::$name ='class2'; /*Вот где-то тут проблема*/ echo $name; } } $one = new first(); How to create a new Class2 object and reassign the variable of the parent class Class1 and display its value?
So that the string "class2" is displayed as a result?