c# Programming Glossary: radioactivepoo
C#: Overriding return types http://stackoverflow.com/questions/1048884/c-overriding-return-types poo like normal animal public class Cat public override RadioactivePoo Excrement get return new RadioActivePoo RadioactivePoo of course.. RadioactivePoo Excrement get return new RadioActivePoo RadioactivePoo of course inherits from Poo . My reason for wanting this is.. the Excrement property without having to cast the Poo into RadioactivePoo while for example the Cat could still be part of an Animal list..
|