File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

protected function

abhishek chauhan

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.

Java Developer, Thailand
I agree. Here's the link:
subject: protected function
It's not a secret anymore!