H
harry
Hi,
We are using virtual keyword in base class function, when same
function name is there in base class and derived class. And we want to
call derived class same function.
my doubt is we have to use virtual function when same function and
also same parameters are there in base class and derived class.
but what we have to do if same function name but different parameters
are there in base and derived class function.
can virtual keyword help in this case also for accessing derived class
function?
should we have to use virtual here also?
thanks.
We are using virtual keyword in base class function, when same
function name is there in base class and derived class. And we want to
call derived class same function.
my doubt is we have to use virtual function when same function and
also same parameters are there in base class and derived class.
but what we have to do if same function name but different parameters
are there in base and derived class function.
can virtual keyword help in this case also for accessing derived class
function?
should we have to use virtual here also?
thanks.