src/swipl-devel/packages/xpce/man/refmanual/md/object.md

class object {#class-object}

Class object is the root of the class hierarchy. It defines common behaviour, mainly to do with object management:

| Creating objects | ->initialise | | Destroying objects | ->free, ->done | | Cloning objects | <-clone | | Saving objects on file | ->save_in_file | | Adding attributes | ->attribute | | Programming | ->send_method, ->get_method |

Any class in PCE must be a sub-class of class object and therefore any object listens to the methods defined on this class.

It is allowed to create instances of class object and extend the instance using object-level programming to realise a single object meeting some specification. See:

| ->attribute | Define object-level attributes | | ->send_method | Add object-level send method | | ->get_method | Add object-level get method |

@see class interceptor @see topic Object-level Programming

Send methods {#class-object-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.