why overriding in the following situation?
suppose i have like this
class a
{
public virtual int add(int x ,int y)
{
retunt x+y;
}
}
class a:b
{
public Override int add(int x ,int y)
{
/// some logic here
}
}
in the above situation i can get the child and parent add() method by creating object on them then why i go for Overriding ?
is there is any performance issues are there ?like memory allocation...etc?
Plz help me ...........

VulpesPosted Mar 1, 2011, 5:05 AM
Krishna GaradPosted Feb 28, 2011, 11:21 PM
Naresh Babu GopavaramPosted Feb 28, 2011, 9:50 AM
Mahesh ChandPosted Feb 28, 2011, 9:45 AM