Dot Net Interview Questions and Tutorials By Dr. Rajesh Rolen
We can't use virtual keyword with function in interface due to the following reasona) 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 .Thanks,M4MAD
Post a Comment
1 comment:
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 .
Thanks,
M4MAD
Post a Comment