Spaces:
Running
Running
Create 03B. Match attributes and classes
Browse files
Week 4: Writing classes/03B. Match attributes and classes
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Decide which attribute belongs to which class
|
| 2 |
+
according to the class name AND the name and type of the attributes.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
class Student
|
| 6 |
+
- int startingyear
|
| 7 |
+
- String studentid
|
| 8 |
+
- String email
|
| 9 |
+
- int studypointTotal
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
class Course
|
| 13 |
+
- String identifier
|
| 14 |
+
- String code
|
| 15 |
+
- String teacher
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class CourseCompletion
|
| 19 |
+
- int completionDone
|
| 20 |
+
- String completiondate
|
| 21 |
+
- int grade
|