hai padmaja,
u r asking abt virtual func,
December 27, 2006 at 9:47 AM
hai padmaja, u r asking abt virtual function. in the case of overridding .when u call the base class fuction the dervived class function is called and executed in that if u want to execute the function what u need in that sitution we declare the base class function that is overridded as virtul so the complier understand the function that is to be called at the runtime based on the type of an object passed rather than the type of the pointer used . i think padmaja u understand this
View All Comments
| View Tutorial