Home > Backend Development > PHP Tutorial > Exploration of PHP5.0 Object Model: Abstract Methods and Abstract Classes PHP Learning Network_PHP Tutorial

Exploration of PHP5.0 Object Model: Abstract Methods and Abstract Classes PHP Learning Network_PHP Tutorial

WBOY
Release: 2016-07-13 16:58:31
Original
776 people have browsed it

Object-oriented programs are built through a hierarchical structure of classes. In a single inheritance language such as PHP, the inheritance of classes is tree-like. A root class has one or more subclasses, and each class is divided into A subclass continues with one or more next-level subclasses. Of course, there may be multiple root classes used to implement different functions. In a well-designed system, each root class should have a useful interface that can be used by application code. If our application code is designed to work with the root class, it can also work with any subclass that continues from the root class.

Abstract method is a placeholder like a general method in a subclass (occupies a place but does not work), it is different from a general method

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631396.htmlTechArticleObject-oriented programs are built through the hierarchical structure of classes. In single continuation languages ​​such as PHP, the continuation of classes Is tree-like. A root class has one or more subclasses, and continuing from each subclass...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template