cc_class: support inheritance