This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javadoc abstracts and children

 
Elouise Kivineva
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I fully documented a method in an abstract class, do I have to repeat the same method javadoc in the child class?
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only if there are special circumstances in the implementation of the subclass. For example if for there are different constraints on the parameters that might cause a ClassCastException to be thrown that coundn't happen in the super class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic