码迷,mamicode.com
首页 > 其他好文 > 详细

different between method and function

时间:2017-02-02 23:45:19      阅读:327      评论:0      收藏:0      [点我收藏+]

标签:different   span   function   object   java   font   eth   ffffff   and   

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

标签:different   span   function   object   java   font   eth   ffffff   and   

原文地址:http://www.cnblogs.com/mikeluwen/p/6361854.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!