SlideShare a Scribd company logo
SUBJECT: OBJECT ORIENTED PROGRAMMING
THROUGH CPP
CLASS : IIB.COM
A.B.N &P.R.R COLLEGE OF
SCIENCE,KOVVUR
LECTURE 1: DELIVERED BY M.MURTHY
CHARACTERSTICS OF
PROCEDURE ORIENTED PROGRAMMING.
In procedural programming programs are
divided into a number of segments known
as subprograms. It focuses on functions
apart from the data. The sub programs
can access to the same global data, here
also the data is not fully protected.
object oriented programming concepts and explanation
BANKING PROJECT
Limitations of POP:-
1.Emphasis on procedure rather than data.
2.Programs are divided into no.of functions.
3.No Security for data because of global declaration. Data
move openly freely around the system.
4.It will not solve all the problems in real world.
5.It is not easy to add new data and functions to existing
code(Maintenance problem)
6.No memory management in procedure oriented languages.
7.It follows top-down approach.
OOP treats data as critical element in the program development and does
not allow it to flow freely around the system. It ties the data more closely to
the functions that operate on it.
1.Emphasis on data rather than procedure.
2.Programs are divided into no.of objects.
3. Data is hidden can’t access outside functions. Data not move freely
around the system. Data is more secure.
4. It will solve all the problems that are in real world.
5.It is very easy to add new data and functions to existing code. You can
also create new data types.
6.It follows bottom up approach.
object oriented programming concepts and explanation
Concepts of Object Oriented Programming :-
1.Class
2.Object
3.Data Encapsulation.
4.Data Abstraction
5.Inheritance.
6.Polymorphism
7.Dynamic binding
8.Message Passing.
Class:-
 A class is a blueprint of an object from which we will create
multiple objects of the same type. class specifies what an object
will contain and what an object will perform.
 Class is a collection of data members (Variables) and member
functions(methods).
 Class is a logical skeleton.Class has no physical existence.
 No memory is allocated for class.
 Class is a user defined data type.
 Examples:- Fruit , Vegetable, Vehicle, Human ,Animal all are
examples of class.
Object:-
 Object is a real world thing which is an instance of a class.
 Object has a physical existence.
 Memory is allocated for object.
 When you create object of a class the n some memory space is
allocated in RAM and stores non static variables of class.
 Object is a simply variable of class type.
 Example:-
 1.Mango,grapes,orange,guava all are objects of fruit class.
 2. Lion, Tiger, Elephant, Deer … examples of Animal class.
object oriented programming concepts and explanation
Data Encapsulation :-
 This is the most striking feature of oop. The Wrapping up of data members and
member functions into single unit is called Encapsulation.
 The data is not accessible to the outside of the world and only those functions
which are wrapped in the class can access it.
 By using class can encapsulate both data and functions.
Data Abstraction :-
I. Abstraction refers to the act of representing essential features without
including background details or explanations. Hiding internal details and
highlight the only services is called abstraction.
II. It is a technique which is used to create new data types.
III. By using Class we can create our own data types.
IV. Security, Maintainability are advantages of Data abstraction.
Inheritance:-
 Acquiring the properties from one class to another class is called inheritance (or) producing
new class from already existing class is called inheritance .
 The class which gives the properties to another class is called Parent class (or)
 Base class (or) Super class.
 The class which derives the properties from other class is called Child class (or) Derived
class (or) Sub class.
 Reusability of code is main advantage of inheritance.
 The relation between the two class is known as “is a” relation.
Polymorphism:-
 The word polymorphism came from two Greek words „poly‟ means „many‟
and „morphos‟ means „forms‟.
 Polymorphism represents the ability to take more than one form.
 Exhibiting different behaviors at different time is called Polymorphism.
 We can achieve polymorphism by using the concept of method overloading.
 Method overloading means defining more than one method with the same
name and with different arguments.
.
Dynamic Binding :-
 Linking of a procedure call to the code to be execute in response to the call is
called Binding.
 Dynamic Binding means the code associated with given procedure call to the
function code is not known until the time of the call at runtime . It is also called
late binding and Runtime binding.
 It associates with both polymorphism and Inheritance.
 By using the concept of Method overriding we can achieve this dynamic binding.
Message Passing :-
An object oriented program consists set of objects that communicate with each
other by passing messages. In this phase involves three steps.
1. create classes that define objects and their behavior
2. create objects from class definitions
3. Establish communication between objects by sending messages.

More Related Content

PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
PPTX
principle of oop’s in cpp
PPTX
Object oriented programing
PPTX
CPP-Unit 1.pptx
PPTX
POP vs OOP Introduction
PDF
C++ chapter 1
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
PPTX
Chapter1 introduction
Ch 1 Introduction to Object Oriented Programming.pptx
principle of oop’s in cpp
Object oriented programing
CPP-Unit 1.pptx
POP vs OOP Introduction
C++ chapter 1
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
Chapter1 introduction

Similar to object oriented programming concepts and explanation (20)

PPTX
2-oops-concepts_about_c++_btech_cse.pptx
PPTX
OOP.pptx
PDF
OOP ppt.pdf
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
PPTX
IET307 OOP - object oriented programming concepts.pptx
PDF
Oop basic overview
PPT
Basic concept of OOP's
PDF
Computer_Programming_Part_II_Segment_01.pdf
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
PPTX
Object Oriented Programming using C++.pptx
PPTX
Principles of object oriented programming
PPTX
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
PPTX
Principles of OOPs.pptx
PPTX
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
PDF
Unit_2.00000000000000000000000000000.pdf
PPTX
Unit 1 OOSE
PPTX
PDF
L1-Introduction to OOPs concepts.pdf
PPTX
Basics of object oriented programming c++ [autosaved]
2-oops-concepts_about_c++_btech_cse.pptx
OOP.pptx
OOP ppt.pdf
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
IET307 OOP - object oriented programming concepts.pptx
Oop basic overview
Basic concept of OOP's
Computer_Programming_Part_II_Segment_01.pdf
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
Object Oriented Programming using C++.pptx
Principles of object oriented programming
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Principles of OOPs.pptx
Unit - I Intro. to OOP Concepts and Control Structure -OOP and CG (2024 Patte...
Unit_2.00000000000000000000000000000.pdf
Unit 1 OOSE
L1-Introduction to OOPs concepts.pdf
Basics of object oriented programming c++ [autosaved]
Ad

Recently uploaded (20)

PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Introduction and Scope of Bichemistry.pptx
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PPTX
Revamp in MTO Odoo 18 Inventory - Odoo Slides
PDF
Open folder Downloads.pdf yes yes ges yes
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
PDF
English Language Teaching from Post-.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
human mycosis Human fungal infections are called human mycosis..pptx
NOI Hackathon - Summer Edition - GreenThumber.pptx
Cell Structure & Organelles in detailed.
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Cardiovascular Pharmacology for pharmacy students.pptx
Renaissance Architecture: A Journey from Faith to Humanism
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Introduction and Scope of Bichemistry.pptx
How to Manage Starshipit in Odoo 18 - Odoo Slides
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
Revamp in MTO Odoo 18 Inventory - Odoo Slides
Open folder Downloads.pdf yes yes ges yes
Pharma ospi slides which help in ospi learning
Open Quiz Monsoon Mind Game Final Set.pptx
English Language Teaching from Post-.pdf
Pre independence Education in Inndia.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Ad

object oriented programming concepts and explanation

  • 1. SUBJECT: OBJECT ORIENTED PROGRAMMING THROUGH CPP CLASS : IIB.COM A.B.N &P.R.R COLLEGE OF SCIENCE,KOVVUR LECTURE 1: DELIVERED BY M.MURTHY
  • 2. CHARACTERSTICS OF PROCEDURE ORIENTED PROGRAMMING. In procedural programming programs are divided into a number of segments known as subprograms. It focuses on functions apart from the data. The sub programs can access to the same global data, here also the data is not fully protected.
  • 5. Limitations of POP:- 1.Emphasis on procedure rather than data. 2.Programs are divided into no.of functions. 3.No Security for data because of global declaration. Data move openly freely around the system. 4.It will not solve all the problems in real world. 5.It is not easy to add new data and functions to existing code(Maintenance problem) 6.No memory management in procedure oriented languages. 7.It follows top-down approach.
  • 6. OOP treats data as critical element in the program development and does not allow it to flow freely around the system. It ties the data more closely to the functions that operate on it. 1.Emphasis on data rather than procedure. 2.Programs are divided into no.of objects. 3. Data is hidden can’t access outside functions. Data not move freely around the system. Data is more secure. 4. It will solve all the problems that are in real world. 5.It is very easy to add new data and functions to existing code. You can also create new data types. 6.It follows bottom up approach.
  • 8. Concepts of Object Oriented Programming :- 1.Class 2.Object 3.Data Encapsulation. 4.Data Abstraction 5.Inheritance. 6.Polymorphism 7.Dynamic binding 8.Message Passing.
  • 9. Class:-  A class is a blueprint of an object from which we will create multiple objects of the same type. class specifies what an object will contain and what an object will perform.  Class is a collection of data members (Variables) and member functions(methods).  Class is a logical skeleton.Class has no physical existence.  No memory is allocated for class.  Class is a user defined data type.  Examples:- Fruit , Vegetable, Vehicle, Human ,Animal all are examples of class.
  • 10. Object:-  Object is a real world thing which is an instance of a class.  Object has a physical existence.  Memory is allocated for object.  When you create object of a class the n some memory space is allocated in RAM and stores non static variables of class.  Object is a simply variable of class type.  Example:-  1.Mango,grapes,orange,guava all are objects of fruit class.  2. Lion, Tiger, Elephant, Deer … examples of Animal class.
  • 12. Data Encapsulation :-  This is the most striking feature of oop. The Wrapping up of data members and member functions into single unit is called Encapsulation.  The data is not accessible to the outside of the world and only those functions which are wrapped in the class can access it.  By using class can encapsulate both data and functions.
  • 13. Data Abstraction :- I. Abstraction refers to the act of representing essential features without including background details or explanations. Hiding internal details and highlight the only services is called abstraction. II. It is a technique which is used to create new data types. III. By using Class we can create our own data types. IV. Security, Maintainability are advantages of Data abstraction.
  • 14. Inheritance:-  Acquiring the properties from one class to another class is called inheritance (or) producing new class from already existing class is called inheritance .  The class which gives the properties to another class is called Parent class (or)  Base class (or) Super class.  The class which derives the properties from other class is called Child class (or) Derived class (or) Sub class.  Reusability of code is main advantage of inheritance.  The relation between the two class is known as “is a” relation.
  • 15. Polymorphism:-  The word polymorphism came from two Greek words „poly‟ means „many‟ and „morphos‟ means „forms‟.  Polymorphism represents the ability to take more than one form.  Exhibiting different behaviors at different time is called Polymorphism.  We can achieve polymorphism by using the concept of method overloading.  Method overloading means defining more than one method with the same name and with different arguments. .
  • 16. Dynamic Binding :-  Linking of a procedure call to the code to be execute in response to the call is called Binding.  Dynamic Binding means the code associated with given procedure call to the function code is not known until the time of the call at runtime . It is also called late binding and Runtime binding.  It associates with both polymorphism and Inheritance.  By using the concept of Method overriding we can achieve this dynamic binding.
  • 17. Message Passing :- An object oriented program consists set of objects that communicate with each other by passing messages. In this phase involves three steps. 1. create classes that define objects and their behavior 2. create objects from class definitions 3. Establish communication between objects by sending messages.