Friday, September 10, 2010

Can we use virtual keyword with functions in interface

This is no need to use virtual keyword with functions of interface as it is by default made to override.

Share This!

1 comment:

maddy said...

We can't use virtual keyword with function in interface due to the following reason

a) Virtual methods are may or mayn't be overrides in child class but in interface all the methods should be implemented

b) Virtual method are used mainly if we overrides or change the methods
implementation in child class irrespective to the parent class .


Powered By Blogger · Designed By Seo Blogger Templates