A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Joined: Aug 03, 2006
May 25, 2007 00:42:00
what are the similarities between constructor and method.
Joined: Oct 13, 2005
May 25, 2007 01:56:00
1: Both can have the same access modifiers.
2: Both can have an argument list, in the same format.
3: Both contain statements.
4: Each can be mistaken for the other
You can't call a contructor the way you call a method and you can't call a method the way you call a constructor.
I agree. Here's the link:
another question on constructors
IS CONCTRUCTOR IS A METHOD
WA #1.....word association
Constructor doubt - K&B Book
Constructors are not inhertied - True
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013