| Did you know ... | Search Documentation: |
| Creating objects |
Basic examples on how to create objects
The examples below show how simple objects can be created.
% Objects with named references
?- new(@my_window, picture('My Window')). % A graphics window
?- new(@origin, point(0,0)). % A point at (0,0)
% Objects with anonymous (integer) references
?- new(B, box(30,40)). % A box of 30 x 40
?- new(L, line(0,0,100,200, second)). % A line with arrow