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

WBOY
Release: 2016-06-02 11:32:26
Original
1322 people have browsed it

成员函数php类内存

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

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!