A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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.
It is sorta covered in the
JavaRanch Style Guide
another question on constructors
Constructor doubt - K&B Book
IS CONCTRUCTOR IS A METHOD
WA #1.....word association
Constructors are not inhertied - True
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014