正在加载图片...
Objects data field 1 radius =5__Data field,State operties State data field m find Areao Method method 1 Behavior method n (A)A generic object (B)An example of circle object An object has a unique identity, state, and behaviors. The state of an object consists of a set of data fields (also known as properties with their current values. The behavior of an object is defined by a set of methods Liang, Introduction to Java Programming, revised by Dai-kaiyuLiang,Introduction to Java Programming,revised by Dai-kaiyu 7 Objects data field 1 method n data field m method 1 (A) A generic object ... ... State (Properties) Behavior radius = 5 findArea() Data field, State Properties Method, Behavior (B) An example of circle object An object has a unique identity, state, and behaviors. The state of an object consists of a set of data fields (also known as properties) with their current values. The behavior of an object is defined by a set of methods
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有