This means that public members in A are inherited by B and are also public from B
Alternatives:
protected - public members from A are protected in B , others are saved the same.
private - All members from A are made private in B
Rules do not apply to methods that are hidden or overridden.
source share