Talk:427 design standard

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Added the "Getters and setters" section based on the lecture today. --[[User:Yugan Yugaraja|Yugan]] 06:09, 23 July 2008 (UTC)
 
Added the "Getters and setters" section based on the lecture today. --[[User:Yugan Yugaraja|Yugan]] 06:09, 23 July 2008 (UTC)
  
== Getters and setters ==
+
Added the "The .Equals(...) Method". --[[User:Tureiti Keith|TK]] 01:57, 4 August 2008 (UTC)
 
+
Here's an alternative set of guidelines our group came up with:
+
* Always make fields have ''private'' access.
+
* Only write getters and setters as needed.
+
* External: access to fields using getters and setters.
+
* Internal: access to fields directly, but only if it's the same object. Use getter and setters if same class, but different objects.
+
* Getters should be read-only (i.e. Collections should be returned as unmodifiable Collections)
+
:--[[User:Yugan Yugaraja|Yugan]] 06:09, 23 July 2008 (UTC)
+

Latest revision as of 01:57, 4 August 2008

Added the "Getters and setters" section based on the lecture today. --Yugan 06:09, 23 July 2008 (UTC)

Added the "The .Equals(...) Method". --TK 01:57, 4 August 2008 (UTC)

Personal tools