aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: protected function