Magik (programming language): Difference between revisions

Content deleted Content added
Krein-H (talk | contribs)
m Language features: Added link to article 'Mixin' to the word 'mixins'
Line 50:
 
;Objects
Objects are implemented in Magik using exemplars. Exemplars have similarities to classes in other programming languages such as [[Java (programming language)|Java]], but with important differences. Magik supports multiple inheritance, and [[Mixin|mixins]] (which implement functionality with no data). New instances are made by cloning an existing instance (which will typically be the exemplar but does not have to be).
 
New exemplars are created using the statement <code>def_slotted_exemplar()</code>, for example: