Home >Backend Development >PHP Tutorial >static的好外是个啥,该怎么处理

static的好外是个啥,该怎么处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:09:43936browse

static的好外是个啥
大家知道static是在数据区存储的,那么在写类的时候都写成静态的不就行了,为啥还要写动态生成类的写法呢,他们都有什么优缺点呢?
------解决思路----------------------
静态是相对动态的
如果都是静态,那就只用共性,没有个性了

Statement:
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