Thursday, March 12, 2009

What's the difference between constructors and other methods? (CoreJava)

Question :What's the difference between constructors and other methods? (CoreJava)
Answer :Constructors must have the same name as the class and can not return a
value. They are only called once while
regular methods could be called many times.

No comments: