Add support for both class subtypes and class interface implementation.