C#

Let me start with basic concepts of object oriented concepts in C#. Following are the concepts that always comes into my mind if some one asks me about object orientation. Of course, you can find 100s of articles in google. But, here I would like to share my knowledge.

Inheritance

In simple words, this concept is taking one class features to another class. In real world, when we design our objects during any implementation this concept is frequently or always used to put together all our business requirements.

Classes and Interfaces

These 2 constitutes the primary parts of any code that is written in object oriented programming languages. Lets talk about C#. In C#, Multiple Interface inheritance is supported and only single class inheritance is supported.

Class is a container of the code which consists of any simple data type properties or our own data type, methods, events and variables

Interface is just a definition of above with out any implementation of any of the code that is written in interface.

Abstraction
Encapsulation
Overloading
Overriding

Association
Aggregation
Composition
Dependencies



No comments:

Post a Comment