Monday, March 15, 2010

Objects with the new operator aka "a Constructor"



The constructor of the class allows for each object of 'Super Mario' to have a different amount of health and lives. Otherwise other details are the same.

No comments:

Post a Comment