Inheritance/Multiple: Difference between revisions

Content deleted Content added
imported>Acediast
→‎{{header|COBOL}}: Added sugar; revert if necessary.
PureFox (talk | contribs)
m →‎{{header|Wren}}: Changed to Wren S/H
Line 1,568:
 
However, multiple inheritance can be simulated by inheriting from a single class and then embedding objects of other classes and wrapping their methods.
<syntaxhighlight lang="ecmascriptwren">class Camera {
construct new() {}
snap() { System.print("taking a photo") }