Nuacht
Access modifiers do not prevent inheritance. Instead, access modifiers affect what you can and cannot see in the subclass. Those private members and attributes are still in your subclasses.
Tá torthaí a d'fhéadfadh a bheith dorochtana agat á dtaispeáint faoi láthair.
Folaigh torthaí dorochtana