It's not a secret anymore!
The moose likes Applets and the fly likes Application Related Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Application Related" Watch "Application Related" New topic
Author

Application Related

tejas jadhav
Greenhorn

Joined: Jan 02, 2001
Posts: 1
Does any body know what Constructor returns?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

tejas,
A constructor for any class returns an instance (actual object) of the class in which it is defined in... Normally you have to define a return type, but the constructor is a special case and it's return type is always the type of object defined in your class... and the only way to call a constructor is via the new keyword. (illustration only... not actual code... the code in angle brackets would not actually be in a real program.) -

HTH,
-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application Related