Home / Object Oriented Programming / Clearly mention the rules when a class is inherited using private, public and protected mode?

Clearly mention the rules when a class is inherited using private, public and protected mode?

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
error: Copy/Paste/Right Click is not allowed. Please share in social media to support us.