Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... When an abstract class inherits from another abstract class, the abstract methods of the abstract parent class cannot be rewritten in the abstract class. This can be understood as an extension of an abstract class.
The following example demonstrates that when an abstract class inherits from another abstract class, you do not need to override the abstract method.
After an abstract class is inherited, its abstract methods cannot be overwritten. If a rewrite occurs, the system reports an error.
Program running result:
Fatal error: Can't inherit abstract function User::setSal() (previously declared abstract in VipUser) in E:\PHPProjects\test.php on line 14
Conclusion: the abstract class inherits the abstract class to extend the abstract class.
The code above extends the methods of the parent class.