a more comprehensive set of PHP tutorials , basic video and some small combat projects, below is the video directoryCD-ROM (i) \php employment Class (I.)CD-ROM (i) \php Technical exchange zone. URLCD-ROM (i) \ "Wisdom Special issue" belongs to it
class modifier
Final
When final is applied to a class, this class is qualified as a non-inheritable class, that is, other classes cannot inherit this class, and the final class, when you do not want others to inherit their own written class, only
If we do not want a class to be inherited, we use final to modify the class. This class cannot be inherited. Final --- used before classes and methods.
Final Class --- cannot be inherited.
Final method --- cannot be overwritten.
The final class
If we do not want a class to be inherited, we use final to modify the class. This class cannot be inherited. Final --- used before classes and methods.
Final Class --- cannot be inherited.
Final method --- cannot be overwritten.
The final class
Php object-oriented image class, interface, final, class constant. This article introduces the basic tutorials on image classes, interfaces, final, and class constants in php. For more information, see. Php object-oriented 1. image extraction class (
Final --- used before classes and methods.
Final class --- cannot be inherited.
Final method --- cannot be overwritten.
The final class cannot be inherited. If we do not want a class to be inherited, we use final to modify the class. This class
If we do not want a class to be inherited, we use final to modify the class. This class cannot be inherited. Final --- used before classes and methods.
Final Class --- cannot be inherited.
Final method --- cannot be overwritten.
The final class
The role of the class
1 Instantiation of objects
2 as the base class of other classes, is inherited!
3 calling its static members
Two main functions: instantiating objects, inheriting them.
There are two kinds of special classes, single function!1,
This article introduces the basic tutorials on image classes, interfaces, final, and class constants in php. For more information, see. Php object-oriented in our actual development process, some classes do not need to be instantiated, such as some
* * Final, Class (file) loading and namespaces1. Final keyword-----End-state, finalThe final keyword is used to decorate classes and methods, and decorated classes cannot be inherited, and decorated function methods (public) cannot be overloaded in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.