正在加载图片...
Static vs.non-static (cont. o Instance fields define an object;the values of those fields make one object distinct from another o Instance method operates on an instance of a class (object)instead of operating on the class itself. o Class methods can only use class fields; while instance methods can use both instance fields and class fieldsStatic vs. non-static (cont.) lInstance fields define an object; the values of those fields make one object distinct from another lInstance method operates on an instance of a class (object) instead of operating on the class itself. lClass methods can only use class fields; while instance methods can use both instance fields and class fields
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有