Professional Documents
Culture Documents
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.