Object-Oriented programming is the technique to design
software. Object-Oriented Programming is a pattern that provides many concepts
like Inheritance, data binding, Polymorphism, etc. You may say Object-Oriented
Programming is a methodology to design a program using classes and objects.
Object-Oriented Programming has some features which are helping
to develop and design software given as bellow.
- Class
- Object
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
Class: Class is the collection of objects, you may
say the class is the entity of objects where we specify types of variables that
can exist in an object as well as methods to perform the operation.
Object: Object
is the instance of the class. According to Microsoft MSDN. An object is
basically a block of memory that has been allocated and configured according to
the blueprint. A program may create many objects of the same class. Objects are
also called instances, and they can be stored in either a named variable or in
an array or collection.
Inheritance: inheriting
properties and behavior by a class from another class is known as inheritance. It
provides code reusability.
Polymorphism: When
a method shows different behavior in the different scenario is known as
polymorphism. For Example, Method Over Loading and Method Over Ridding...
Abstraction: To
hiding internal process and show only required information to the user is called
abstraction.
Encapsulation: Wrapping
up data, code, and method in a single unit are called encapsulation. Encapsulation
is responsible for hiding data at code/programming level.
Awesome post. keep it.
ReplyDelete