c# Programming Glossary: getnameslota
Why does this polymorphic C# code print what it does? http://stackoverflow.com/questions/1508350/why-does-this-polymorphic-c-sharp-code-print-what-it-does All instances of A are required to have a slot we'll call GetNameSlotA. All instances of C are required to have a slot we'll call GetNameSlotC... in B which means I do not want a new slot I want to re use GetNameSlotA . Of course C inherits from A so C must also have a slot GetNameSlotA... . Of course C inherits from A so C must also have a slot GetNameSlotA. Therefore instances of C have two slots GetNameSlotA and GetNameSlotC...
|