|
Rate question difficulty level
|
0
|
0 Votes
|
Is it a valid code and what will be the result
public class shape
{
public virtual void printType() {
Console.Write("Im a shape ");
}
}
public class circle:shape
{
public virtual void printType()
{
Console.Write("Im a circle");
}
}
void main ()
{
shape circle = new circle();
circle.printType();
}