Tuesday 5 February 2013

State the need for Virtual Functions in C++




State the need for Virtual Functions in C++.
(i) main reason for having a virtual function is to implement a different functionality in the derived class.
(ii) to add (means we can redefine in derived class) more facility to that function
(iii)virtual functions are needed to develop late binding concepts.

No comments:

Post a Comment