D
Danny Ni
Hi,
I was asked a question in a recent interview, where in ASP.Net is
polymorphism used?
I got differrent answers from different people,
One said ToString() method because it is working for different classes.
One said OnInit() method of System.Web.UI.Page class because it's defined
virtual and that's the key to polymorphism.
The most concise definition I can find for polymorphism:
Same method reacts differently for different class.
Any comments?
Thanks in Advance
I was asked a question in a recent interview, where in ASP.Net is
polymorphism used?
I got differrent answers from different people,
One said ToString() method because it is working for different classes.
One said OnInit() method of System.Web.UI.Page class because it's defined
virtual and that's the key to polymorphism.
The most concise definition I can find for polymorphism:
Same method reacts differently for different class.
Any comments?
Thanks in Advance