Tell the difficulties that i am difficult.
Seetharaman Venkatasamy wrote:but i make a constructor as final by not using final keyword instead I use private ;)
Tell the difficulties that i am difficult.
saloni jhanwar wrote: what is use of private here as we can't inherit constructor.
Seetharaman Venkatasamy wrote:
saloni jhanwar wrote: what is use of private here as we can't inherit constructor.
you cant subclass a class[or you cant instantiate a class using that constructor]
Tell the difficulties that i am difficult.
Seetharaman Venkatasamy wrote:Constructor is a *special* kind of method. and how do you create an instance[by using new operator] of a class with out seeing the constructor ?
Tell the difficulties that i am difficult.
saloni jhanwar wrote:but is there any sense to use any access modifiers with it ?
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Helen Ma wrote:
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |