Object-Oriented Programming

Object-Oriented Programming (OOP) is a concept of programming structure where programmes are organized by Object and data instead of code and logic.


The Microsoft.Net provides the numbers of software which can be used to compile the programmes and it provides the various platform of development to develop the applications based on Windows, Web, and mobile etc.

What is an Object ?

The Object represents the class and is responsible to allocate the memory for data members and functions. An object is a real time entity which has attributes like data type and behaviors (functions).

An object can be considered a "thing" which can perform a set of related activities. The set of activities that the object performs defines the object's behavior. For example, a Car is an object which has attributes like maxSpeed, fuel and functions/methods like getSpeed, getFuel, setSpeed, refuel, drive. In pure OOP concept an object is an instance of a class




What is a Class ?


Class is a data structure that contains data members (constants files, events), member function methods, properties, constructor, destructor, indexers and nested type.Basically

The C# provides wide support for object-oriented programming concept which includes encapsulation, inheritance, and polymorphism. We can understand better by seen below diagram.

OOPS Features