I\'m studying Common Lisp (with Lispworks) and I\'m trying to get into class system right now. There is a class called standard-object and it is defined as
To understand this you will need to understand the concept of meta class
. The instance of a meta class is a class and the instance of a class is an object, so basically we have 3 level hierarchy.
standard-class
is a meta-class. standard-object
is an instance of metaclass standard-class
hence it is class. Every other user defined class by default inherits from standard-object
class.
So when you are creating a class, you are basically instantiating standard-class
metaclass and this new class is inherited by standard-object
class.