What Is interface & Delegates I need perfect explantion and example from C# corner
Oops
Hi All
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Aug 12, 2013, 12:38 AM
Happy Learning.
om prakashPosted Aug 11, 2013, 11:52 PM
Sunny SharmaPosted Aug 10, 2013, 12:52 AM
I think you haven't practiced on the basics yet. A class and a Windows Form application are quite different things. A class is an architecture where you declare what has to be inside a class. See the example below:
-------------------------------------
class StudemtDetails{
public string Name{get;set;}
public int RollNo{get;set;}
public string Address{get;set;}
}
-------------------------------------
This is an architecture which you're going to implement in your application whether it a Windows Form Application or it's Web Application or any kind of that. You create objects of this class in your application and utilize it for your purposes.
Hope you understand what I mean. Please refer to the C# Programming Basics if you're still not clear.
Hope it helps :)
om prakashPosted Aug 9, 2013, 8:33 AM
Sunny SharmaPosted Aug 9, 2013, 6:37 AM
find them here on C# Corner:
Delegates in C#
http://www.c-sharpcorner.com/UploadFile/Ashush/delegates-in-C-Sharp/
Inteface in C#
http://www.c-sharpcorner.com/UploadFile/3d39b4/interface-in-C-Sharp-part-1/
http://www.c-sharpcorner.com/UploadFile/3d39b4/interface-in-C-Sharp-part-2/
Explained very nicely.
Happy Learning :)