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 Groovy Fundamentals video training course this week in the Groovy forum!
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
Consider Paul's rocket mass heater.
subject: protected function