SCJP6.0,My blog Ranchers from Delhi
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
then if i make the default constructor as protected then whther it will have any impact on in any class.
then tell whether all of its constructors are also public....
then if i make the default constructor as protected then whther it will have any impact on in any class.
SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
Prasad Kharkar wrote: the access modifier of the default constructor is same as that of class (according to K & B)
SCJP6.0,My blog Ranchers from Delhi
phil sohar wrote:
Prasad Kharkar wrote: the access modifier of the default constructor is same as that of class (according to K & B)
if the default constructor is made protected by me irrespective of whether the class is public then is it appropriate.............
i want to know appropriate not legal...........i know it is legal.............
for example
note:- above code will not give any compilation error...........
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Abimaran Kugathasan wrote:
It's up to you! But it's legal!
SCJP6.0,My blog Ranchers from Delhi
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
can you please elaborate what a singleTon class means?
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Regards,
Avishkar Nikale
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|