42aabce1bb
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1973 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
29 lines
712 B
Plaintext
29 lines
712 B
Plaintext
================================================================
|
|
Logtalk - Open source object-oriented logic programming language
|
|
Release 2.30.7
|
|
|
|
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
|
|
================================================================
|
|
|
|
|
|
This directory contains two versions, one prototype-based and the
|
|
other one class-based, of a very simple geometric shapes hierarchy.
|
|
|
|
The aim of this example is to compare the pros and cons of using
|
|
either prototypes or classes for defining object hierarchies.
|
|
|
|
ph
|
|
prototype-based version
|
|
|
|
ch
|
|
class-based version
|
|
|
|
Both versions define the following hierarchy of objects:
|
|
|
|
shape
|
|
polygon
|
|
regular_polygon
|
|
square
|
|
q1
|
|
q2
|