This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes when costructor is call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "when costructor is call" Watch "when costructor is call" New topic

when costructor is call


Joined: Oct 12, 2001
Posts: 7
I have some problem about constructor that if i create a object of any other class in my main method , and that class has already create a object of third class before it's constructor ,
what out will be displayed when i call a constructor of that class( that class has not default contructor ).

jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Not sure if I understand the question. Could you perhaps either further clarify your problem, or show some code that will help others understand the problem you are having?
Also, please re-register with a name that meets the JavaRanch naming conventions. JavaRanch requires a user name in the form "First name" + space + "Last name".
It is sorta covered in the JavaRanch Style Guide.
subject: when costructor is call
jQuery in Action, 3rd edition