S
superfrog
Hi there,
while trying to learn polymorphism, i am confused between
the 2.
=======================================================
class Person
{
...
public void someMethod()
{
//do something
}
}
class Guy erson
{
public new void someMethod()
{
// do something
}
}
===============================================
what is the difference between using the "New" keyword
(int the above code) and using a "Virtual" in the base
class and the "override" in the derive class?
thank you very much.
while trying to learn polymorphism, i am confused between
the 2.
=======================================================
class Person
{
...
public void someMethod()
{
//do something
}
}
class Guy erson
{
public new void someMethod()
{
// do something
}
}
===============================================
what is the difference between using the "New" keyword
(int the above code) and using a "Virtual" in the base
class and the "override" in the derive class?
thank you very much.