Less childish name for dog class example
parent
d9e08766ef
commit
6b5df5a77e
|
@ -24,6 +24,6 @@ var Dog = Class( 'Dog',
|
||||||
Dog( 'Fluffy' ).bark();
|
Dog( 'Fluffy' ).bark();
|
||||||
|
|
||||||
// alternatively, we can use the 'new' keyword
|
// alternatively, we can use the 'new' keyword
|
||||||
var inst = new Dog( 'Rompie' );
|
var inst = new Dog( 'Bob' );
|
||||||
inst.bark();
|
inst.bark();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue