SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
David Newton wrote:Describe how it does it, if it's not obvious from the implementation.
That way, developers can decide to take the default implementation, override the method or combine them (using super.method).This implementation calls add(size(), e).
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Mm kaimkhani wrote:... i hardly use to manage write 1 or two paragraph
Rob Prime wrote:Only if you intend the method to be overwritten. Users of your classes do not care about how a method works, only what it does.
David Newton wrote:
Rob Prime wrote:Only if you intend the method to be overwritten. Users of your classes do not care about how a method works, only what it does.
Documentation isn't written just for the consumer, but also the writer, and the maintainer.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:... Comments on how a method work should be contained inside the method, not be part of its API...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Mm kaimkhani wrote: I HAVE REPLIED PLEASE CHECK.