Anonymous
public javascript v1 · immutable// JavaScript Documentvar Animal = new Class({ getMilk: function(){}});var Living = new Class({ live: function(){} , talk: function(){ return null; } })var Cow = Animal.extend({ talk: function(){ return "moo"; } })Cow.implement(new Living); //cow lives. needs "live" method"Cow.talk(); //null... not moo...