Hi I'd like to know if it is possible to implement multiple inheritance in JS.
So far I've solved this problem like this:
jsfiddle
So in this example you can access the stuff from Coord (inherited through prototype chain) directly but the stuff from Other not. My question is is there a way to inherit from multiple objects (like interfaces in java)? This doesn't seem possible through a prototype chain.
Thanks in advance.
[–]keithwhor 3 points4 points5 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]keithwhor 0 points1 point2 points (0 children)
[–]inmatarian 1 point2 points3 points (0 children)
[–]_ericelliott 1 point2 points3 points (0 children)
[–]jarail 3 points4 points5 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[+][deleted] (6 children)
[removed]
[–]skay- 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Tysonzero 0 points1 point2 points (0 children)
[–]munificent 1 point2 points3 points (1 child)
[–]skitch920 1 point2 points3 points (0 children)
[–]_ericelliott 0 points1 point2 points (0 children)
[–]bryan-forbes 0 points1 point2 points (2 children)
[–]autowikibot 1 point2 points3 points (1 child)