Post a Job  |   Ask a Question?   |   Already registered? login or register
Ramakanth reddy
10/05/2015 07:02 PM

WHY clone() IS DECLARED AS PROTECTED?here if we've clone() with public modifier,even then also ,it works same as protected clone() ,because this method is there in object class. so what is necessity of having clone() as protected rather than public clone()?


here if we've clone() with public modifier,even then also ,it works same as protected clone() ,because this method present in object class. so what is necessity of having clone() with protected rather than with public ?
Spam    0 Comments

Languages :
xml