正在加载图片...
Naming classes Use capital letters e.g. BankAccount not bankAccount Singular nouns Use the right level of generality E. g Municipality, not city Make sure the name has only one meaning - E.g. bus' has several meanings www.lloseng.com O Lethbridge/Laganiere 2001 Chapter 2: Review of object Orientation© Lethbridge/Laganière 2001 Chapter 2: Review of Object Orientation 9 Naming classes • Use capital letters —E.g. BankAccount not bankAccount • Use singular nouns • Use the right level of generality —E.g. Municipality, not City • Make sure the name has only one meaning —E.g. ‘bus’ has several meanings
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有