Hi,
I'm learning C# and I just don't quite understand the need for
polymorphism. why do we need to use it? how does a base class variable
holding a derived class instance do any good?
Also, what's the difference between method hiding and overriding when
they're both still overriding the base method.
Thanks
I'm learning C# and I just don't quite understand the need for
polymorphism. why do we need to use it? how does a base class variable
holding a derived class instance do any good?
Also, what's the difference between method hiding and overriding when
they're both still overriding the base method.
Thanks
Comment