Turn Desktop View Off
by Dinesh Thakur

Method overriding means same name methods in different classes.

Polymorphism is a feature to use one name in many forms. There ·Polymorphism can be achieved in following ways in C#:

 
by Dinesh Thakur

Inheritance is a mechanism of sharing the members among the classes.

 

Inheritance means taking an existing class and adding functionality by deriving a new class from it.

 
by Dinesh Thakur

Constructor is method of class to allocate the memory of object and initialize the variables of class.

 

When you declare a variable of a class, a special method must be called to initialize the members of that class. This method is automatically provided for every class and it is called a constructor.



 
by Dinesh Thakur

One can create new reference types by defining classes. Classes provide templates' from which these direct instances are generated. Where we appeal to the relation between a class and its corresponding reference type instances we shall say that a class specifies the type (also that the class specifies the constitutive elements of the type)

 
by Dinesh Thakur

Object-Oriented programming emphasis on data rather than function.

Object-Oriented programming was developed due to the limitations of the traditional programming approaches. The traditional programming approaches, such as Pascal, C, BASIC, FORTRAN and etc., are basically called procedural-oriented programming languages.