parent comes first for inheritance