inheritance
generate composite ref class