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.
Cuireadh roinnt torthaí i bhfolach toisc go bhféadfadh siad a bheith dorochtana duit
Taispeáin torthaí dorochtana