Tuesday, March 31, 2009

Cat and Dog Exercise.

In our 'Cat And Dog' exercise, instead of creating classes in one form/object, we can create the classes separately, meaning that it's less clustered, and it can be moved and imported to different projects.

Each class includes properties and methods.

The 'new' method is the 'constructor' of the class, and methods can accept argurments.

No comments:

Post a Comment