I think it is not possible to indicate that Car
inherits from Vehicle
while not drawing Vehicle
, but note that you can omit the information that is not relevant. In this case, since you are modelling Car
, you may omit the attributes and operation compartments of Vehicle
, like this:
The UML specification gives the following guideline: "show full attributes and operations when needed and suppress them in other contexts or when merely referring to a class and says that "any compartment may be suppressed. A separator line is not drawn for a suppressed compartment. If a compartment is suppressed, no inference can be drawn about the presence or absence of elements in it." (UML Superstructure Specification, v2.4.1; pag 50 and 54).