Removed header from class declaration example
parent
f2ab096ee3
commit
45cd68908b
|
@ -1,19 +1,13 @@
|
||||||
/**
|
// define class Dog
|
||||||
* Basic class declaration example
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Define class Dog
|
|
||||||
var Dog = Class( 'Dog',
|
var Dog = Class( 'Dog',
|
||||||
{
|
{
|
||||||
'private _name': '',
|
'private _name': '',
|
||||||
|
|
||||||
|
|
||||||
__construct: function( name )
|
__construct: function( name )
|
||||||
{
|
{
|
||||||
this._name = name;
|
this._name = name;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
'public bark': function()
|
'public bark': function()
|
||||||
{
|
{
|
||||||
console.log( this._name + ' says: Woof!' );
|
console.log( this._name + ' says: Woof!' );
|
||||||
|
|
Loading…
Reference in New Issue