Letter, Letter , , . , , , Letter. , . , , :
if (myArray[i] is A)
{
A objA = myArray[i] as A;
...
is as downcasts, , downcast .
, , Letter, , , .
myArray[i].DrawSelf(Point ptStart)
and make the various derived classes responsible for knowing how to draw themselves, starting from a specific place.
source
share