There's nothing wrong with the approach you have used here but an alternative would be to override addContent() in the child classes and just call the parent method before added "specific content". Either approaches are find but I think overriding addContent() would make what is happening more obvious when looking at the child class without the need to look deeper into the code of this class.