different between method and function
Posted 行知笔记
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了different between method and function相关的知识,希望对你有一定的参考价值。
A method is on an object.
A function is independent of an object.
For Java, there are only methods.
For C, there are only functions.
For C++ it would depend on whether or not you‘re in a class.
以上是关于different between method and function的主要内容,如果未能解决你的问题,请参考以下文章
Difference between link and @import
python: the difference between append and extend
Difference between Netbios and Host name