What is the advantages of interface

Posted by Kalaikathiravan under C# on 11/5/2012 | Points: 10 | Views : 2056 | Status : [Member] | Replies : 2
Dear friends,
Multiple inheritance are Inherit the base function and using in our child class but interface part just declare the function and defined in implemented class so why we create a Interface we will directly create a function in implemented class. why we are creating interface plz tell me....




Responses

Posted by: Rajesh081725 on: 11/5/2012 [Member] Bronze | Points: 25

Up
0
Down
Multiple inheritance is possible with the help of interfaces.

c# thr is no multiple inheritanc.so we use intefaces in
c# 4 implimenting multiple inheritance..

http://www.codeguru.com/csharp/csharp/cs_syntax/interfaces/article.php/c5825/Using-Multiple-Interfaces.htm

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.

Kalaikathiravan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Krv on: 11/5/2012 [Member] Starter | Points: 25

Up
0
Down
a. For use the multiple inheritance feature
b. We can make sure that all the developer writing code should implement some specific methods (Like Disposing object after use, etc.,)

Thanks,
R.Vasanth
MCTS(SQL Server & BI)
http://bigdatatech.blogspot.com

Kalaikathiravan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response