as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
generate an example of a class inheritance hierarchy.
user
an example of a class inheritance hierarchy is a car class, with a sub-class of the sedan class, which has sub-classes of a sedan, a coupe, and a convertible. the sedan class could have any number of sub-classes, such as a sports sedan, luxury sedan, or compact sedan. the coupe class could have any number of sub-classes such as a sports coupe, luxury coupe, or compact coupe. the convertible class could have any number of sub-classes such as a sports convertible, luxury convertible, or compact convertible.
assistant