Home  >  Article  >  Backend Development  >  成员函数-关于实例化一个类时占用的内存大小问题

成员函数-关于实例化一个类时占用的内存大小问题

WBOY
WBOYOriginal
2016-06-02 11:32:261310browse

成员函数php类内存

在PHP语言中,写一个类,如果类的成员函数 很多,会不会增大实例化这个类时占用的内存?
如下:
class abc{
public function __construct(){
xxxxxx;xxxxxx;
}
public function a(){xxxxxx;}
public function b(){xxxxxxx;}
}//classs
那当我实例化它时,是不是函数 越多占的内存越大?

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