PE1(AY22/23)
Session 1
This year's Session 1 is very normal and manageable. Will update the UML if have time in the future.
Tips
In the subclass of an abstract class, you still can override the concrete method in that abstract class.
In the Constructor of a class, always think about what are the necessary fields that should be included.
The elegant use of
toString(): if your class has a string field that you want to get from outside, you can encapsulate it intotoString()method of the class, so that calling the class itself by using eitherthisorsuperwill give you that string.
Last updated