You are on page 1of 6

OBJECT ORIENTED

PROGRAMMING
There are mainly two types of programming-
1.PROCEDURE ORIENTED PROGRAMMING
2.OBJECT ORIENTED PROGRAMMING
POP
• POP follows the concept of breaking a problem into smaller tasks ,solves
each task seperately and then combines all the tasks to solve the entire
problem.
• Reusablity becomes difficult.
OOP
• OOP uses the concept of object to reuse the exisiting code.
• An object may contain certain behaviour and properties.
• Behaviour is called as method and properties are called attributes.
BASIC PRINCIPLES OF OOP
Encapsulation:
• Data hiding is the process of showing only the relevant information and hiding the
irrelevant information from the user.
• It binds the variables and functions into a single unit called a class.
Abstraction
• is the process of providing the essential features without providing the background
details or explanations.
• Inheritance is the process of OOP which allows you to reuse the existing code.

• It is a mechanism to design or construct a class from the other.


• Polymorphism
• means ,one name multiple forms
• Method overloading: Same method name ,but different number of arguments.
• Method Overriding :Same method name and same number of arguments declared in
different classes

You might also like