Preface, this note is mainly for people with higher technical level; mainly OOP.
1. Inheritance is important. Do not add __construct
randomlyWhat does it mean? If you want to add __construct in inheritance, you must pay attention. This may override its parent's __construct.
What should I do?
a. Use other methods to transfer variables; b. Add parent::__construct(); parent::getone(); to the __construct of the subclass instead of using $this