能否通俗一点讲一下“反射机制”的概念和例举一下应用场景?

WBOY
Release: 2016-06-06 20:17:05
Original
1365 people have browsed it

能否通俗一点讲一下“反射机制”的概念和例举一下应用场景?

回复内容:

能否通俗一点讲一下“反射机制”的概念和例举一下应用场景?

介绍java反射机制的比较多,php的比较少,但道理相通。

提供几篇文章:

http://stackoverflow.com/questions/37628/what-is-reflection-and-why-is-it-useful

http://baike.baidu.com/view/1865203.htm

http://baike.baidu.com/view/3454964.htm

通俗一点就是“一个类能够知道自己具有哪些属性和方法,这种机制就是反射。”

用搜索引擎找一下,反射相关的资料很多。

Related labels:
php
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