Public and private attributes and inheritance.