|
|
|
|
|
by mcv
1053 days ago
|
|
I don't understand why he added all those exceptions to the abstract class. That's not what abstract classes are for. The initial code example shows an implementation class inheriting from the abstract class; that seems like the perfect place for exceptions. Why not simply use that most basic feature of OOP? Override the parts of your abstract class that you need to override. |
|
Clearly what you're saying is correct, however, it would mess up his original intent, which was frictionless extensibility.