in reply to Object Terminology
Nice start stvn!
Here are my observations and questions about this draft, since you asked :)
General Comments
greatly misunderstoodit would help the reader if you also give an example of how the subject is misunderstood, otherwise how is the reader to know what the wrong understanding actually is, so they can avoid it themselves
Specific Comments
A Platypus is-a Mammal but it also lays eggs like a Bird.This could be confusing since LIKE-A has no further explanation or comparison in your text.
tend to play havoc with inheritancethen perhaps a lesser discussion would be appropriate, maybe just a single sentence for the sake of completeness.
A class that implements an Interfaces enters into a contract with all consumers of that class that the methods (implemented or stubs) from said interfaces will be there.Will be where? I think I know what you mean. Perhaps this could be re-worded like this:
A class that implements an Interface enters into a contract with all consumers of that class that it will implement all methods declared by the Interface.
Interfaces are best characterized as "is-a-type-of"To me this reads as though "Interface" is synonymous with "Inheritance". In contrast, I conceptualise Interfaces as a HAS-A relationship but where the details are left to the consumer of the object. To me an Interface says things like
A car has a dashboard that shows current speed and distance travelled, but it doesn't matter (to me, the base class) what this dashboard looks like or even how it communicates these details.
Please don't take any of this as negative criticism. As I said, I think what you've written so far is a good start.
__________________
Update: Added bullets for clarity
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Object Terminology
by stvn (Monsignor) on Jan 12, 2004 at 14:32 UTC | |
by oylee (Pilgrim) on Jan 12, 2004 at 16:33 UTC |