File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

protected function

 
abhishek chauhan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
protected is make sense for inheritance.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic