Geek Explains: Java, J2EE, Oracle, Puzzles, and Problem Solving!
Wednesday, May 14, 2008
Difference between constructors and other methods
Two major differences: One, constructors must have same name as the class and can’t have any return type. Two, constructors are called only once, while other methods can be called multiple times.
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment