0% found this document useful (0 votes)
28 views6 pages

Object Oriented Programming

The document discusses object oriented programming and its basic principles of encapsulation, abstraction, inheritance and polymorphism. It compares object oriented programming to procedure oriented programming and how object oriented programming uses objects and classes to reuse existing code.

Uploaded by

ARVIND H
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views6 pages

Object Oriented Programming

The document discusses object oriented programming and its basic principles of encapsulation, abstraction, inheritance and polymorphism. It compares object oriented programming to procedure oriented programming and how object oriented programming uses objects and classes to reuse existing code.

Uploaded by

ARVIND H
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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