This is compatible with the open/closed principle (OCP), which proposes that classes should be open for extension but closed for modification.
Open/closed principle (OCP) – Klasser ska vara öppna för utökning (genom arv), men låsta för modifiering.