This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes protected function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "protected function " Watch "protected function " New topic
Author

protected function

abhishek chauhan
Greenhorn

Joined: Jul 21, 2005
Posts: 8
Every Class by default extend the Object Class then why is clone() method declared as protected. It does make any difference if it was declared as public
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
protected is make sense for inheritance.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
GeeCON Prague 2014
 
subject: protected function