What is Object Oriented Programming ? | OOPs
Object oriented programmingis a technique in which programmers define not only data type of data structure but also types of operations that can be applied to the data structure.
The basic concepts of Object oriented programming
- Abstraction
- Class
- Encapsulation
- Information hiding
- Inheritance
- Interface
- Messaging
- Object
- Polymorphism
- Procedure
We will discuss all these basic concepts mention above about Object Oriented Programming
Abstraction:
Abstraction is the process of picking out or abstracting common features of objects and procedures.Class:
Class contains objects. There are different objects in class. In other words class in an instance of an object. Each object belongs to its class.Encapsulation:
Encapsulation is the wrapping or combing data which include variables and methods on which techniques or code acting or applying.Information Hiding:
Informationhiding is the best feature of Object Oriented Programming. In which necessary information is hidden from user. The real life example of information hiding is:
Everyone knows ATM machine is for withdraw money but no one knows what’s going on back end.
Inheritance:
In inheritance the characteristics of class A transfers to class B. same as the parents and child relation. In which characteristics of parent transfer to the child but child characteristics cannot be transfer to the parent. In OOP its works similar.Interface in Object Oriented Programming:
First look at interface generally. Interface is the point between two things or a program that enables the user to communicate the computer.Similarly in Object Oriented Programming. interface is some syntax or structure that allows the computer to apply some certain strategies on object.
Example:there are different classes Class truck, Class bike, Class Car but something is needed to start up that is engine (interface).
Messaging:
Message passing is a form of communication used in parallel programming and Object Oriented Programming..Object:
An object is a component of program that knows how to perform certain actions and how to interact with other perspective of our program. Object is the basic component of Object Oriented Programming..In Object Oriented Programming object could be anything on which programmer work.Example:
1. A person
2. A car
Polymorphism:
In simple words we can define polymorphism as the ability of message or some text to be displayed in more than one form. Or best example is a person which have more than one characteristics means he is a father, he is brother, he is son.In Object Oriented Programming, there are two types of polymorphism
Compile time Polymorphism:
In compile time polymorphism, where more than one method share same name with different parameter in Object Oriented Programming.
Runtime Polymorphism:
In Runtime polymorphism, where have same methods with same parameters in Object Oriented Programming.
Procedure:
A procedure can be defined as a part or section of program that perform a specific task in Object Oriented Programming.In Object Oriented Programming language there depth in techniques, there different syntax techniques use to write programs, syntax is the rules or regulation of writing programs in Object Oriented Programming language.
Object oriented languages are
- C++,
- java
- Python,
- PHP, Ruby,
- Perl,
- Object Pascal,
- Swift,
- Common Lisp
- Smalltalk.
Four Major Benefits of Object Oriented Programming:
- Modularity for easier troubleshooting.
- Reuse of code through inheritance.
- Flexibility through polymorphism.
- Effective problem solving.
The most important applications of Object Oriented Programming are:
Client-Server System.
Object Oriented Database.
l-Time System Design.
Simulation and Modeling System.
Hypertext and Hypermedia.
Neural Networking and Parallel Programming.
Office Automation System.
Artificial Intelligence Expert System.
CIM/CAD/CAM System.
Object Oriented Database.
l-Time System Design.
Simulation and Modeling System.
Hypertext and Hypermedia.
Neural Networking and Parallel Programming.
Office Automation System.
Artificial Intelligence Expert System.
CIM/CAD/CAM System.
The applications are mentions above the major applications of
Object Oriented Programming. Anybody can learn the Object Oriented Programming but some of few knows the where these skills have to apply. Programmers that have skills of Object Oriented Programming languages must demand much more salary for his work because it’s not easy to work or understand the machine. Today in the world human cannot bear other human’s behavior so how could it possible a programmer can work or understand the machine easily so he must demand much higher salary in his field.
Thank you 😊
For more information or any question just comment below and keep visiting us.
What is Object Oriented Programming ? | OOPs
4/
5
Oleh
Arham