Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
为什么类的定义应当写在头文件中,从而被多个源文件包含?
比如myclass h定义了一个类myclass xff08 只定义类 xff0c 不定义成员函数 xff09 xff0c file1 cpp里 include 34 myclass h 34 xff0c 编译得到file1 obj xff
为什么类的定义应当写在头文件中
从而被多个源文件包含