January 2007
How null breaks polymorphism: or the problem with null: part 2 – Programming Matters
![](https://blogmarks.net/img/default-gravatar.gif)
A further exploration of the problems null brings when it shouldn't be needed. Simple mechanisms for dealing with the problem are presented.
March 2006
![](https://blogmarks.net/screenshots/2006/12/08/4fa8445d1e2b4ac4ebf6214970c9884f.png)
OOP Concept explained: Polymorphism (Technology) || kuro5hin.org
![](https://blogmarks.net/img/default-gravatar.gif)
Polymorphism 的講解,不過運用的是一個超淫的例子。衰得在他說得合題…
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)