Include Paulo Moura's Logtalk OO LP system
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@53 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
20
Logtalk/examples/polygons/square.lgt
Normal file
20
Logtalk/examples/polygons/square.lgt
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
:- object(square,
|
||||
instantiates(class),
|
||||
specializes(polygon)).
|
||||
|
||||
|
||||
:- info([
|
||||
version is 1.0,
|
||||
date is 1998/3/23,
|
||||
authors is 'Paulo Moura',
|
||||
comment is 'Square class.']).
|
||||
|
||||
|
||||
number_of_sides(4).
|
||||
|
||||
|
||||
instance_base_name(sq).
|
||||
|
||||
|
||||
:- end_object.
|
Reference in New Issue
Block a user