File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed
RectangleClass/RectangleClassPhase1 Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ public class Rectangle
1414 @param len The value to store in length.
1515 */
1616
17- public void setLength (double len )
18- {
17+ public void setLength (double len ) {
1918 length = len ;
2019 }
2120}
Original file line number Diff line number Diff line change 11public class Cat {
22 // all values relate to a cat, in an object
3+
4+ // very rarely do we have public attributes (vars)
5+ // as below
6+
37 public String name ;
48 public int age ;
59 public boolean isGiantCat ;
Original file line number Diff line number Diff line change 11public class Cat {
22 // all values relate to a cat, in an object
3+
4+ // very rarely do we have public attributes (vars)
5+ // as below
36 public String name ;
47 public int age ;
58 public boolean isGiantCat ;
Original file line number Diff line number Diff line change 11public class Date {
2+
3+ // very rarely do we have public attributes (vars)
4+ // as below
5+
26 //store all of the values related to a Date into a new object
37 public String dayOfWeek ;
48 public int year ;
You can’t perform that action at this time.
0 commit comments