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
Unit-V.pptx
AtharvaPimple1
 
PPTX
Introduction to Object Oriented Programming Class IX
Ansh Sam
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
PPT
Use Classes with Object-Oriented Programming in C++.ppt
manishchoudhary91861
 
PPTX
Principles of oop
SeethaDinesh
 
PPTX
Object oriented programming in python
nitamhaske
 
PPTX
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Maharshi Dayanand University Rohtak
 
Unit-V.pptx
AtharvaPimple1
 
Introduction to Object Oriented Programming Class IX
Ansh Sam
 
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Use Classes with Object-Oriented Programming in C++.ppt
manishchoudhary91861
 
Principles of oop
SeethaDinesh
 
Object oriented programming in python
nitamhaske
 
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Maharshi Dayanand University Rohtak
 

Similar to object oriented programming concepts and explanation (20)

PPTX
POP vs OOP Introduction
Hashni T
 
PPTX
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
PDF
MCA NOTES.pdf
RAJASEKHARV10
 
PDF
M.c.a. (sem iv)- java programming
Praveen Chowdary
 
PDF
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
PPTX
Object Oriented Programming Concepts Using C++
Mtnc BCA DEPARTMENT
 
PPTX
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
PPT
Oop by edgar lagman jr
Jun-jun Lagman
 
PDF
EEE oops Vth semester viva questions with answer
Jeba Moses
 
PPT
Ashish oot
Ashish Agrawal
 
PPT
Object Oriented Language
dheva B
 
PPTX
Oop
kaur12345
 
PPT
chapter - 1.ppt
SakthiVinoth78
 
PPTX
C++ programming introduction
sandeep54552
 
PPT
Object oriented programming
sureshmoharana2013
 
PDF
Oops concepts
ACCESS Health Digital
 
PPTX
Concepts of oop1
SheetalPareek
 
PPTX
JAVA - Oops Concept.pptx
ayankamila005
 
PPTX
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
POP vs OOP Introduction
Hashni T
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
MCA NOTES.pdf
RAJASEKHARV10
 
M.c.a. (sem iv)- java programming
Praveen Chowdary
 
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Object Oriented Programming Concepts Using C++
Mtnc BCA DEPARTMENT
 
Ch 1 Introduction to Object Oriented Programming.pptx
MahiDivya
 
Oop by edgar lagman jr
Jun-jun Lagman
 
EEE oops Vth semester viva questions with answer
Jeba Moses
 
Ashish oot
Ashish Agrawal
 
Object Oriented Language
dheva B
 
chapter - 1.ppt
SakthiVinoth78
 
C++ programming introduction
sandeep54552
 
Object oriented programming
sureshmoharana2013
 
Oops concepts
ACCESS Health Digital
 
Concepts of oop1
SheetalPareek
 
JAVA - Oops Concept.pptx
ayankamila005
 
INTRODUCTION TO JAVA
RAMALINGHAM KRISHNAMOORTHY
 
Ad

Recently uploaded (20)

PPTX
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
How to Manage Global Discount in Odoo 18 POS
Celine George
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PDF
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PPTX
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
Understanding operators in c language.pptx
auteharshil95
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
Odoo 18 Sales_ Managing Quotation Validity
Celine George
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
How to Manage Global Discount in Odoo 18 POS
Celine George
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
5.EXPLORING-FORCES-Detailed-Notes.pdf/8TH CLASS SCIENCE CURIOSITY
Sandeep Swamy
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
Understanding operators in c language.pptx
auteharshil95
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
Congenital Hypothyroidism pptx
AneetaSharma15
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
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.