
19 Jul
2011
19 Jul
'11
3:59 a.m.
On 19/07/2011, at 0:09, Patrick Browne
instance Bird Emperor where -- No fly method walk x y = y
instance Penguin Emperor where -- How can I override the walk method in the instance Penguin? -- walk x y = x
Why would you want to override the walk method for Emperor? It already has one due to being a Bird. How could you possibly distinguish an Emperor walking as a Bird from an Emperor walking as a Penguin? Why would it be desirable?