SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Object Oriented Programming
With C++
Principles and advantages of oop
CONCEPTS OF OOP
• Class
• object
• Inheritance
• Abstraction
• Encapsulation
• Polymorphism
CLASS
• A class is a collection of objects of similar type.
• Example:-
mango, apple and orange are members of the
class fruit.
• Classes are user-defined data type and built-
in type of a programming language.
• fruit mango:
will create an object mango belonging to the
class fruit
OBJECT
• Object are the basic run time entity in an
object –oriented system.
• They may represent a person, a place, a bank
account, a table of data or any item that
program has handle.
Example of objects
OBJECT: emp
DATA :
Emp_no
Name
Age
Salary
FUNCTIONS :
Getdata (input)
Total (find total
salary)
Display (output)
INHERITANCE
 It is the capability of one class to inherit
properties from another class.
5 types of inheritance
 Single level
 Multilevel
 Multiple
 Hierarchical
 Hybrid
Single level inheritance
Base classFlower
Rose Derived class
Single level
Multi level inheritance
Base class
Rajasthan
Jaipur
World
India
Multi level
Multiple inheritance
Bird
Parrot Sparrow
Multiple
inheritance
Base class
Derived class
ABSTRACTION
Definition- The act of representing essential
features without including the background details
or explanations.
• Classes uses the concept of abstraction and are
defined list of abstract attributes.
• The attributes are sometime called as data
members because they hold information.
• The function that operates on these data are
sometimes called methods or member function.
ENCAPSULATION
• Definition :- The wrapping up of data and
functions into a single unit.
• Data encapsulation is the most striking
feature of class.
• Encapsulation means that some or all of an
object's internal structure is "hidden" from
the outside world.
POLYMORPHISM
•polymorphism is the ability of objects of
different types to respond to functions of
the same name.
Types of polymorphism
• Virtual functions.
• Operator overloading.
• Function overloading.
ADVANTAGES OF OOP
• Through inheritance, we can eliminate code and
extend the use of existing classes.
• Reusability.
• Easy to understand.
• Models the real world well.
• The principle of data hiding helps the programmer to
build secure programs.
• Software complexity can be easily managed.
• It is essay to partition the work in a project based on
object.
• Software complexity can be easily managed.
• Object –oriented system can be easily upgraded from
small to large system.
Principles and advantages of oop ppt

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

concept of oops
concept of oopsconcept of oops
concept of oops
 
Encapsulation
EncapsulationEncapsulation
Encapsulation
 
FUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPTFUNCTIONS IN c++ PPT
FUNCTIONS IN c++ PPT
 
C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS Concept
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Data types in C
Data types in CData types in C
Data types in C
 
Object oriented programming concepts
Object oriented programming conceptsObject oriented programming concepts
Object oriented programming concepts
 
C++ Files and Streams
C++ Files and Streams C++ Files and Streams
C++ Files and Streams
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Characteristics of OOPS
Characteristics of OOPS Characteristics of OOPS
Characteristics of OOPS
 
Object Oriented Programming Concepts for beginners
Object Oriented Programming Concepts for beginners Object Oriented Programming Concepts for beginners
Object Oriented Programming Concepts for beginners
 
Oops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in JavaOops concepts || Object Oriented Programming Concepts in Java
Oops concepts || Object Oriented Programming Concepts in Java
 
Polymorphism in c++(ppt)
Polymorphism in c++(ppt)Polymorphism in c++(ppt)
Polymorphism in c++(ppt)
 
C++ Overview PPT
C++ Overview PPTC++ Overview PPT
C++ Overview PPT
 
Object-oriented concepts
Object-oriented conceptsObject-oriented concepts
Object-oriented concepts
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
 
Function in C program
Function in C programFunction in C program
Function in C program
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
 
Oops ppt
Oops pptOops ppt
Oops ppt
 

Ähnlich wie Principles and advantages of oop ppt

1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
Jay Patel
 

Ähnlich wie Principles and advantages of oop ppt (20)

SKILLWISE - OOPS CONCEPT
SKILLWISE - OOPS CONCEPTSKILLWISE - OOPS CONCEPT
SKILLWISE - OOPS CONCEPT
 
Object oriented programming 6 oop with c++
Object oriented programming 6  oop with c++Object oriented programming 6  oop with c++
Object oriented programming 6 oop with c++
 
Basic concepts of oops
Basic concepts of oopsBasic concepts of oops
Basic concepts of oops
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
 
Introduction to OOP concepts
Introduction to OOP conceptsIntroduction to OOP concepts
Introduction to OOP concepts
 
Introduction to oop and java fundamentals
Introduction to oop and java fundamentalsIntroduction to oop and java fundamentals
Introduction to oop and java fundamentals
 
oop.pptx
oop.pptxoop.pptx
oop.pptx
 
1 unit (oops)
1 unit (oops)1 unit (oops)
1 unit (oops)
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
 
U1 JAVA.pptx
U1 JAVA.pptxU1 JAVA.pptx
U1 JAVA.pptx
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
 
Questpond - Top 10 Interview Questions and Answers on OOPS
Questpond - Top 10 Interview Questions and Answers on OOPSQuestpond - Top 10 Interview Questions and Answers on OOPS
Questpond - Top 10 Interview Questions and Answers on OOPS
 
L1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdfL1-Introduction to OOPs concepts.pdf
L1-Introduction to OOPs concepts.pdf
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)Std 12 computer chapter 6 object oriented concepts (part 1)
Std 12 computer chapter 6 object oriented concepts (part 1)
 
Concepts of oop1
Concepts of oop1Concepts of oop1
Concepts of oop1
 
CPP-Unit 1.pptx
CPP-Unit 1.pptxCPP-Unit 1.pptx
CPP-Unit 1.pptx
 
Oops and c fundamentals
Oops and c fundamentals Oops and c fundamentals
Oops and c fundamentals
 
Core java lessons
Core java lessonsCore java lessons
Core java lessons
 
Concepts of OOPs
Concepts of OOPsConcepts of OOPs
Concepts of OOPs
 

Mehr von daxesh chauhan (7)

Rsa and diffie hellman algorithms
Rsa and diffie hellman algorithmsRsa and diffie hellman algorithms
Rsa and diffie hellman algorithms
 
Elastic beam (bending of beam model)
Elastic beam (bending of beam model)Elastic beam (bending of beam model)
Elastic beam (bending of beam model)
 
Functional dependencies and normalization
Functional dependencies and normalizationFunctional dependencies and normalization
Functional dependencies and normalization
 
Insertionsort shellsort heapsort
Insertionsort shellsort heapsortInsertionsort shellsort heapsort
Insertionsort shellsort heapsort
 
COMBINATIONAL PLD-BASED STATE MACHINES
COMBINATIONAL PLD-BASED STATE MACHINESCOMBINATIONAL PLD-BASED STATE MACHINES
COMBINATIONAL PLD-BASED STATE MACHINES
 
Cn ppt
Cn  pptCn  ppt
Cn ppt
 
Input - output organzation
Input - output organzationInput - output organzation
Input - output organzation
 

Kürzlich hochgeladen

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Kürzlich hochgeladen (20)

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICSUNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
UNIT-IFLUID PROPERTIES & FLOW CHARACTERISTICS
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 

Principles and advantages of oop ppt

  • 1. Object Oriented Programming With C++ Principles and advantages of oop
  • 2. CONCEPTS OF OOP • Class • object • Inheritance • Abstraction • Encapsulation • Polymorphism
  • 3. CLASS • A class is a collection of objects of similar type. • Example:- mango, apple and orange are members of the class fruit. • Classes are user-defined data type and built- in type of a programming language. • fruit mango: will create an object mango belonging to the class fruit
  • 4. OBJECT • Object are the basic run time entity in an object –oriented system. • They may represent a person, a place, a bank account, a table of data or any item that program has handle.
  • 5. Example of objects OBJECT: emp DATA : Emp_no Name Age Salary FUNCTIONS : Getdata (input) Total (find total salary) Display (output)
  • 6. INHERITANCE  It is the capability of one class to inherit properties from another class. 5 types of inheritance  Single level  Multilevel  Multiple  Hierarchical  Hybrid
  • 7. Single level inheritance Base classFlower Rose Derived class Single level
  • 8. Multi level inheritance Base class Rajasthan Jaipur World India Multi level
  • 10. ABSTRACTION Definition- The act of representing essential features without including the background details or explanations. • Classes uses the concept of abstraction and are defined list of abstract attributes. • The attributes are sometime called as data members because they hold information. • The function that operates on these data are sometimes called methods or member function.
  • 11. ENCAPSULATION • Definition :- The wrapping up of data and functions into a single unit. • Data encapsulation is the most striking feature of class. • Encapsulation means that some or all of an object's internal structure is "hidden" from the outside world.
  • 12. POLYMORPHISM •polymorphism is the ability of objects of different types to respond to functions of the same name.
  • 13. Types of polymorphism • Virtual functions. • Operator overloading. • Function overloading.
  • 14. ADVANTAGES OF OOP • Through inheritance, we can eliminate code and extend the use of existing classes. • Reusability. • Easy to understand. • Models the real world well. • The principle of data hiding helps the programmer to build secure programs. • Software complexity can be easily managed.
  • 15. • It is essay to partition the work in a project based on object. • Software complexity can be easily managed. • Object –oriented system can be easily upgraded from small to large system.