Talk:Errata
From APIDesign
(Difference between revisions)
(→Chapter 6) |
(→Chapter 6) |
||
Line 4: | Line 4: | ||
page 90:<br/> | page 90:<br/> | ||
"... 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"/> | ||
<code> | <code> | ||
public '''abstract class''' HelloClass '''extends''' SimpleHelloClass { | public '''abstract class''' HelloClass '''extends''' SimpleHelloClass { | ||
Line 11: | Line 12: | ||
should define the complicated sayHelloTo: | should define the complicated sayHelloTo: | ||
- | < | + | <source lang="java" snippet="design.insert.superclass2"/> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
[[User:Cordeo|Cordeo]] 21:47, 7 October 2010 (UTC) | [[User:Cordeo|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. |
Revision as of 16:33, 10 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(); }
public abstract class HelloClass extends SimpleHelloClass { }
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.