Saturday, 28 September 2013

What's the difference between constructors and passing parameters?

What's the difference between constructors and passing parameters?

I believe I understand what constructors are now, but to me it seems they
are just used for passing info to methods in another class. So why not
just call a method and supply a parameter instead? Have I got this wrong?

No comments:

Post a Comment