For those interested, the idea behind the null object pattern is this. When I'm writing normal code with normal (non-null) objects, I should create something like a sibling class of my class, which will inherit the same interface as my class does and provide empty implementations of the methods that my class implements normally. If someone got a better understanding, please share:).
I think that course could be so much better if each level starts with many simple tasks like that, teaching simple concepts and on the end each level tasks like that from previous page.
Justin SmithLevel 41, Greenfield, USA, United States
10 August 2022
Both of these were quite a bit easier than some of the other recent tasks. Kind of a relief!
GO TO FULL VERSION