Is there a way to prevent child class definitions overwriting the base class? Or prevent type narrowing? Either through compiler errors or linting warnings.
B