January 2007
How null breaks polymorphism: or the problem with null: part 2 – Programming Matters
by wsrileyA further exploration of the problems null brings when it shouldn't be needed. Simple mechanisms for dealing with the problem are presented.
March 2006
OOP Concept explained: Polymorphism (Technology) || kuro5hin.org
by felixlaumon & 5 othersPolymorphism 的講解,不過運用的是一個超淫的例子。衰得在他說得合題…
Quote:
//in Mouth
public void TakeALoad(Load l) {
//50-50 chance of spitting or swallowing
if(Math.RandomNumber() % 1 == 0) {
this.Spit(l);
} else {
this.Swallow(l);
}
}
Polymorphism (多態)
http://www.wgqqh.com/shhgs/book/chap7.pdf
1
(4 marks)