Clearly mention the rules when a class is inherited using private, public and protected mode?
Public derivation | Private derivation | Protected derivation | |
private | Not inherited | Not inherited | Not inherited |
protected | protected | private | protected |
public | public | private | protected |