Browse Source

Update README.md

Git-Leon 7 years ago
parent
commit
8f740d29b9
1 changed files with 30 additions and 3 deletions
  1. 30
    3
      README.md

+ 30
- 3
README.md View File

@@ -75,9 +75,36 @@
75 75
 	* Create a `testTeach` method that ensures when an `Instructor` invokes the `.teach` method, a respective student's `totalStudyTime` instance variable is incremented.
76 76
 	* Create a `testLecture` method that ensures when an `Instructor` invokes the `.teach` method, a respective student's `totalStudyTime` instance variable is incremented by the specified `numberOfHours`.
77 77
 
78
+
79
+-
80
+# Part 6.1 - Create `Cohort` class
81
+* Create a `Cohort` class.
82
+	* The class should instantiate an `ArrayList` field of `Student` objects named `studentList`.
83
+	* The class should define a method named `addStudent` which adds a `Student` to the `studentList`.
84
+	* The class should define a method named `getStudents` which returns an array representation of the `studentList`.
85
+	* The class should define a named `removeStudents` which clears our `studentList`.
86
+	
87
+-
88
+# Part 6.0 - Test `Cohort`
89
+* Create a `TestCohort` class.
90
+	* Create a `testAddStudent` method which ensures that our `studentList` in our `Cohort` class populated with respective `Student` objects following invokation of the `addStudent` method.
91
+	* Create a `testRemoveStudents` method which ensures that our `studentList` in our `Cohort` class is **depopulated** with respective `Student` objects following invokation of the `removeStudent` method.
92
+	
78 93
 	
79 94
 -
80
-# Part 6.1 - Create `ZipCodeWilmington` Class
95
+# Part 7.0 - Test `MyCohort` singleton
96
+* Create a `TestMyCohort` class.
97
+	* Create a `test` method which ensures that each of the students in your current cohort are in your `MyCohort` singleton.
98
+
99
+-
100
+# Part 7.1 - Create `MyCohort` singleton
101
+* Create a `MyCohort` class using the _singleton design pattern_.
102
+	* The class should populate a composite `private` `Cohort` field with `Student` object-representations of each of your classmates.
103
+	* The composite `Cohort` field should be exposed to the client via a `getCohort` method.
104
+
105
+
106
+-
107
+# Part 8.0 - Create `ZipCodeWilmington` Class
81 108
 * Create a `ZipCodeWilmington` class.
82 109
 	* _Statically_ instantiate a `private` `ArrayList` of `Instructor` objects named `instructorList`.
83 110
 	* Create a `public static` method named `hire` which adds an `Instructor` to the `instructorList` and returns `void`.
@@ -106,9 +133,9 @@ static { // static initializer
106 133
 	* Create a `testHireStaff` method which ensures that our `instructorList` is populated with respective `Instructor` objects.
107 134
 
108 135
 -
109
-# Part 7.1 - Create `TechConnect` Class
136
+# Part 7.1 - Create `Classroom` Class
110 137
 * Create a `TechConnect` class.
111
-	* _Statically_ instantiate a `private` `ArrayList` of `Student` objects named `studentList`.
138
+	* The class should instantiate an `ArrayList` field of `Student` objects named `studentList`.
112 139
 	* Create a `public static` method named `recruitStudent` which adds a `Student` to the `studentList` and returns `void`.
113 140
 	* Create a `public static` method named `getStudents` which returns the `studentList`.
114 141
 	* Create a `public static` method named `removeStudents` which clears our `studentList`.

HTTP/1.0 200 OK Content-Type: text/html; charset=UTF-8 Set-Cookie: i_like_gitea=fb07f79fb14e3d9e; Path=/; HttpOnly Set-Cookie: _csrf=xC1bknIGOg2HlM0l9PidnJ8s_3Y6MTcyNjgwMzQzMzg5ODY5OTgwOQ%3D%3D; Path=/; Expires=Sat, 21 Sep 2024 03:37:13 GMT; HttpOnly X-Frame-Options: SAMEORIGIN Date: Fri, 20 Sep 2024 03:39:02 GMT Update README.md · 9f1293ca02 - Git Zipcoder
Quellcode durchsuchen

Update README.md

Git-Leon vor 7 Jahren
Ursprung
Commit
9f1293ca02
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      README.md

+ 1
- 1
README.md Datei anzeigen

@@ -151,7 +151,7 @@
151 151
 * To remedy this issue, we can _generify_ the `People` class.
152 152
 
153 153
 ### Part 10.1 - Modify `People` class
154
-* [Parameterize](https://stackoverflow.com/questions/12551674/what-is-meant-by-parameterized-type) the `People` signature to enfore that it is a container for objects of type `E` such that `E` is a subclass of `Person`.
154
+* [Parameterize](https://stackoverflow.com/questions/12551674/what-is-meant-by-parameterized-type) the `People` signature to enforce that it is a container for objects of type `E` such that `E` is a subclass of `Person`.
155 155
 * Modify `people` field to enforce that is a container of objects of type `E`.
156 156
 * Modify the `add` method to ensure that it handles object of type `E`.
157 157
 * Modify the `getArray` method to ensure that it returns an object of type `E[]`.