Welcome to Dotnetpedia.net

DOTNETPEDIA.net is not just another Blog or discussion forum. This is live platform, run by Dotnetpedia.net community members of this website, organized in such a way that it will be helpful to all developers, as well all Dotnet technologies community. What we can do here? Post your content, your live problems which occurs in your development life cycle, and Dotnetpedia.net Community members provides solution here..., so its a one place where we need to look at for problem solutions. what is different here than other technical website? Difference is pretty much simple, for Ex.

Delegates in C#

Delegates in C#

A delegate is a type-safe object that can point to another method (or possibly multiple methods) in the application, which can be invoked at later time.

A delegate type maintains three important pices of information :

  1. The name of the method on which it make calls.
  2. Any argument (if any) of this method.
  3. The return value (if any) of this method.

 

Defining a Delegate in C#

Difference between Abstract Class and Interface

Abstract class

An abstract class is a type of class that cannot be instantiated, an abstract class is used to be sub-classed (inherited).

It enforces certain hierarchies for all the subclasses, it is a kind of contract that enforces all the subclasses to carry on the same hierarchies.

Interface