aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Constructors 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 » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Constructors" Watch "Constructors" New topic
Author

Constructors

dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
Hi all.
Are constructors part of an instance or static class?


SCJP 1.4<br />SCWCD 1.4
Gian Franco
blacksmith
Ranch Hand

Joined: Dec 16, 2003
Posts: 975
Hi dennis,
If I understand your question correctly you are asking whether
a constructor is part of the instance of a class or wheter it is
the static part of a class.
I don�t think it involves the static part of the class, because
something being static implies that there is only one, so if a
constructor is seen as belonging to the static part of a class
every instance of the class would initialise in the same way
and that�s not true.
I think it is part of the instance of a class, because it involves
the 'kick-off' of an instance of every new class by initialising
it.
Does this help?
Gian Franco


"Eppur si muove!"
dennis zined
Ranch Hand

Joined: Mar 07, 2003
Posts: 330
Yes I figured it would be part of an instance class, but unlike instance methods (in an instance class), it cannot be inherited. Thanks for your reply Gian. I just needed a sounding board.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Constructors
 
Similar Threads
Why I can't call the parent class constructor?
another question on constructors
OOP 4: Lookup
Constructors are not inhertied - True
Can constructor throw exception?