If a base class
Logger has a method
reportError that takes an
Error object and formats it as a string.
If a subclass implements that method but outputs the string in a different format, yet a string format nonetheless, does it violate the LSP?
I know that adding methods to the subclass doesn’t violate the LSP, it just needs to be able to be tested where it’s base class is used.