Wednesday, March 14, 2012

what is the purpose of having constructors?

A constructor can be used in cases where every time an object gets created and you want some code to be automatically executed. The code that you want executed must be put in the constructor. That code could be anything, it could check for hard disk space, it could create a file or it could connect to the net and bring a file over. What that code will do shall vary from person to person.


code your way to glory

No comments:

Post a Comment

Don't judge me like you know me.Don't talk to me if you don't like me. I am my own person and If you don't like that i don't give a f***