Java Reference
In-Depth Information
var mike = new Turtle("Michelangelo");
Verify that the new instance has inherited properties and methods from the prototype ob-
ject:
mike.eat();
<< "Mmm, this Pizza tastes great!"
Augment the instance with individual properties:
mike.weapon = "Nunchuks";
<< "Nunchuks"
Search WWH ::




Custom Search