interview purpose i want answers

Posted by Ramana under Interview Questions on 3/20/2012 | Points: 10 | Views : 879 | Status : [Member] | Replies : 2
what is interface? what is the addvantages of interfaces in .net?




Responses

Posted by: Sksamantaray on: 3/20/2012 [Member] Silver | Points: 25

Up
0
Down
Hi Ramana,
Interface is an entity or contract which has declaration of methods without their implementation.A class which is going to use an interface has to implement all the methods of that interface.Interface helps to implement multiple inheritence.
For more refer to:
http://www.codeproject.com/Articles/10197/The-Interface-Construct-in-C
http://www.codeproject.com/Articles/11155/Abstract-Class-versus-Interface
http://www.codeproject.com/Articles/18743/Interfaces-in-C-For-Beginners

Thanks,
Sanjay

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

Login to post response