aspose file tools
The moose likes Beginning Java and the fly likes differnce between constructor and method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "differnce between constructor and method" Watch "differnce between constructor and method" New topic
Author

differnce between constructor and method

d one 2 die 4
Greenhorn

Joined: May 14, 2003
Posts: 4
can any one tell me what is major three difference between
constructor
and
method?
i will tahnkful 2 u ppl
byi
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
d one 2 die 4,
Welcome to JavaRanch (again)!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
adi peretz
Greenhorn

Joined: Jun 14, 2003
Posts: 5
hi
1)constructors needs to be with the same name as the class
2)they can not return a value
3)you cant inherit a constructor from a perent class
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: differnce between constructor and method
 
Similar Threads
Constructors?
Diffence between constructor overloading and method overloading
differnce between constructor and method
Diffence between constructor overloading and method overloading
Can I overload a constructor with enum values?