Deleting a super class from a class means removing the relationship between two classes. If a super class is deleted from a class, it changes inheritance relationship of the classes as well as of all their subclasses.
ALTER CLASS
.
.
.
DROP SUPERCLASS class_name [ { , class_name }_ ]
[ INHERIT resolution [ {, resolution }_ ] ] [ ; ]
resolution:
{ column_name | method_name } OF superclass_name [ AS alias ]
For the first class_name, specify the name of the class to be modified. For the second class_name, specify the name of the super class to be deleted. If a name conflict occurs after deleting a super class, see the Resolving Class Conflict section for the resolution.
The following example shows how to inherit the female_event class from the event class.
CREATE CLASS female_event UNDER event
The following example shows how to delete the super class event from the female_event class. Attributes that the female_event class inherited from the even class no longer exist.
ALTER CLASS female_event
DROP SUPERCLASS event;