75b2645e3f
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1580 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
25 lines
883 B
Plaintext
25 lines
883 B
Plaintext
=================================================================
|
|
Logtalk - Object oriented extension to Prolog
|
|
Release 2.27.1
|
|
|
|
Copyright (c) 1998-2006 Paulo Moura. All Rights Reserved.
|
|
=================================================================
|
|
|
|
|
|
Run this example with no other examples loaded at the same time.
|
|
|
|
To load this example and for sample queries, please see the SCRIPT file.
|
|
|
|
This folder contains an example that shows how to implement a reflective
|
|
class-based system. There are three main classes:
|
|
|
|
object - root of the inheritance graph
|
|
class - default metaclass for all instantiable classes
|
|
abstract_class - default metaclass for all abstract classes
|
|
|
|
Each class inherit all the methods form the other two classes and from
|
|
itself (without any inheritance loops of course ;-).
|
|
|
|
You can find more sophisticated versions of these classes in the roots
|
|
example.
|