Object Oriented Programming (OOP) Concepts
Object Oriented Programming means writing programming which are OBJECT
oriented or organized around objects rather than action and logic.
Why Object Oriented Programming (OOPS)?
We already had procedural programming
so why OOPS. As we know that procedural programming is about writing procedures or methods(function) that perform operations on the data,
while object-oriented programming is about creating objects
that contain both data and methods. So to avaoid repetition of code
OOPs come in picture.
OOP helps to keep the C# code DRY - "Don't Repeat Yourself"
which is about reducing the repetition of code. You should extract out the codes that are common for the application,
and place them at a single place and reuse them instead of repeating it.
OOP makes it possible to create full reusable applications
with less code and shorter development time.
OOP provides a clear structure
for the programs to make code faster and easier
to execute.
Summary
To summarise, OOP allows decomposition of a problem
into a number of entities called objects
and then builds data and functions around these objects.
Hope you picked up a thing or two.
Cheers!