Creates a new subclass.
- (variable superclass)
- A variable to be bound to the new class and the superclass of the new class.
- Clauses to be asserted about the new class. If a
(:NAME ...) clause
is included, the new class will be created with the name given in that clause.
(:ADD-CLASS (?c Automobiles) (:NAME ?c "Trucks"))
(:ADD-CLASS (?cats Mammals) (:NAME ?cats "Cats") (enemyOf ?cats Dogs))
Succeeds if the subclass is successfully created.
Fails if the subclass can not be created.
The superclass of the new class must already exist.
Algernon Documentation Central
Algernon home page