Talk:Errata
From APIDesign
(Difference between revisions)
(→Chapter 6) |
|||
Line 5: | Line 5: | ||
"... simply add the more complicated way of saying hello to its definition: | "... simply add the more complicated way of saying hello to its definition: | ||
<source lang="java" snippet="design.insert.superclass1"/> | <source lang="java" snippet="design.insert.superclass1"/> | ||
- | |||
- | |||
- | |||
- | |||
This change is ..." | This change is ..." | ||
Revision as of 06:41, 11 October 2010
(Please discuss, review and move to main page if correct)
Chapter 6
page 90:
"... simply add the more complicated way of saying hello to its definition:
Code from SimpleHelloClass.java:
See the whole file.public abstract class SimpleHelloClass { public abstract String sayHello(); }
This change is ..."
should define the complicated sayHelloTo:
Code from HelloClass.java:
See the whole file.public abstract class HelloClass extends SimpleHelloClass { public abstract String sayHelloTo(String who); }
Cordeo 21:47, 7 October 2010 (UTC)
Thanks for pointing this out. The snippet code was OK, just it showed just a part of the source file, not whole. I fixed that in http://source.apidesign.org/hg/apidesign/rev/e49c5a2d9b32 I'll update the main page soon.