Inheritance/Single: Difference between revisions
Content deleted Content added
m →{{header|F_Sharp|F#}}: Nicer language name |
Added XLISP |
||
Line 1,859:
fido = new(dog)
felix = new(cat)</lang>
=={{header|XLISP}}==
<lang lisp>(define-class animal)
(define-class dog
(super-class animal))</lang>
A REPL session:
<lang lisp>[1] (dog 'superclass)
#<Class:ANIMAL #x5a894c8>
[2] (animal 'superclass)
#<Class:OBJECT #x5a894c8></lang>
=={{header|zkl}}==
|