数量/ Quantity模式 Slid before 1st Section Divider 随时间变化事物 (Things That 扩 Change with Time 模式 展 Unused 观察和 Section 测量模 Space 2
Slides before 1st Section Divider 随时间变化事物 (Things That Change with Time) 模式 数量/ Quantity模式 Unused Section Space 2 观察和 测量模式 Unused Section Space 3 Unused Section Space 4 Unused Section Space 1 扩展
观察和测量模式 徐迎晓 复旦大学软件学院 xuyingxiao@126.com
观察和测量模式 徐迎晓 复旦大学软件学院 xuyingxiao@126.com
数量/ Quantity ● class Person{ int height; int weight
数量/Quantity class Person{ int height; int weight; … }
Java中已有的 Number ●C| ass number Method Summary byte byte O Returns the value of the specified number as a byte. abstract double O double Returns the value of the specified number as a double abstract float value O float Returns the value of the specified number as a float abstract intValueO ant Returns the value of the specified number as an int abstract long Value long Returns the value of the specified number as a long. short shortValueO Returns the value of the specified number as a short
Java中已有的Number Class Number
Person height: Number weight: Number blood gl ucose le vel Number