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

17 lines
226 B
JavaScript

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