What do you mean by virtual methods?

virtual methods are used to use the polymorhism feature in C++. Say class A is inherited from class B. If we declare say fuction f() as virtual in class B and override the same function in class A then at runtime appropriate method of the class will be called depending upon the type of the object.

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions