1
0
Fork 0
easejs/scripts/ex/class-extend.js

17 lines
242 B
JavaScript

var Cow = Class( 'Cow',
{
'virtual public tip': function()
{
return "Omph.";
},
} );
var SturdyCow = Class( 'SturdyCow' )
.extend( Cow,
{
'override public tip': function()
{
return "Moo.";
},
} );