Added a doc snippet about inheritance.