After the TP parent class introduces some class libraries, there is no need to introduce subclasses, right?

for example, if some class libraries are introduced into the parent class file Base.php, and then the child class file Son.php inherits the parent class file and uses these class libraries in the subclasses, you don"t have to introduce these classes, right?

use think\Controller;
use think\facade\Request;
use think\response;
use think\View;
use think\Validate;
use think\validate\ValidateRule;
use app\index\model\User;
use think\facade\Cookie;
Mar.14,2021

you'll know if you verify it. The answer is no.


No, it needs to be introduced.
Class loading has nothing to do with parent and child classes

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30f35-402e2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30f35-402e2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?