Guest_imported
New member
- Jan 1, 1970
- 0
Hi,I completly understand virtual methods and polymorphism(one interface,multiple methods),but I don't understand why is it so important that a call to overridden function is resolved at runtime(runtime means when exe or dll file starts running,right?) and not compiled time?
Why is that so good?
If you have
Console.Read(i);
if(;i<10)
{
first()<
}
else
{
second()<
}
Isn't a call to one of those two methods also resolved at runtime?
Thanks for helping me out
Why is that so good?
If you have
Console.Read(i);
if(;i<10)
{
first()<
}
else
{
second()<
}
Isn't a call to one of those two methods also resolved at runtime?
Thanks for helping me out