SlideShare a Scribd company logo
6
Most read
11
Most read
13
Most read
Submitted By:
Sajjad Ali Khan
B.tech (CSE)
Roll no - 1736210006
Session 2020-21
Seminar
On
Object-Oriented
Programming
Content
 What is an Object?
 What is a Class?
What is a Message?
Why OOP?
Design Principles of OOP
 Requirements of Object-Oriented language
Step by step explanation
Conclusion
References
What is an Object?
An object is a software bundle of related variables and
methods. Software objects are often used to model real-
world objects you find in everyday life.
Visual representation of a software object A bicycle modeled as a software object
What is a Class?
A class is a blueprint or prototype that defines the variables
and the methods common to all objects of a certain kind.
 Class is an implementation of an abstract data type and
so encapsulates both data and operations.
 Object is run-time instance of class.
Classes just sit there, objects do the real work.
Memory is allocated for Objects not for Classes.
What is a Message?
Software objects interact and communicate with each
other using messages.
 The object to which the message is addressed (YourBicycle)
 The name of the method to perform (changeGears)
 Any parameters needed by the method (lowerGear)
object oriented Programming ppt
To be object oriented, a language must support
 Encapsulation
 Inheritance
 Dynamic Binding
Some of the popular OO languages are
C++
Smalltalk
Java
Eiffel
FORTRAN90
CLOS(Common Lisp Object System)
Ada95
Modula-3
Encapsulation:
Packaging an object's variables within the protective
custody of its methods is called encapsulation.
Often, for practical reasons, an object may wish to expose
some of its variables or hide some of its methods.
Access Levels:
Specifier Class Subclass Package World
Private X
Protected X X X
Public X X X X
10
What is Inheritance?
A class inherits state and behavior from its superclass.
Inheritance provides a powerful and natural mechanism for
organizing and structuring software programs.
Super Class
Subclasses
Properties:
Each subclass inherits state (in the form of variable declarations) from the superclass.
Subclasses can add variables and methods to the ones they inherit from the superclass.
Subclasses can also override inherited methods and provide specialized
implementations for those methods.
You are not limited to just one layer of inheritance. The inheritance tree, or class
hierarchy, can be as deep as needed.
Benefits:
Re-Usability
Subclasses provide specialized behaviors from the basis of common elements provided
by the superclass. Through the use of inheritance, programmers can reuse the code in
the superclass many times.
Can define Abstract Classes
Programmers can implement superclasses called abstract classes that define "generic"
behaviors.
A
B
C
A B
C
A-1
A-2
B-1
B-2
AB
Multi-level Inheritance Multiple
Inheritance
Multiple Multi-level
Inheritance
Types of Inheritance:
Dynamic Binding:
 Dynamic binding occurs when the type of variable changes at run-
time.
A common way for a variable to change its type is via assignment.
Bike:= MoutainBike is safe
MountainBike:=Bike is not safe
MountainBike is declared to have all the features of Bike so the
assignment does no harm.
 A variable that starts life of the type Bike may be attached to any
object that is a kind of Bike, including MountainBike,RacingBike,…
 A variable that starts life of the type MountainBike can only be
attached to MountainBike objects but does not include RacingBike or
general Bike.
Polymorphism:
 The ability to appear in many forms.
 In object-oriented programming,
polymorphism refers to a programming
language's ability to process objects differently
depending on their data type or class.
It is the ability to redefine methods for
derived classes.
E.g. e-bike Acceleration system.
Electronically / Mechanically
object oriented Programming ppt
object oriented Programming ppt
object oriented Programming ppt

More Related Content

What's hot (20)

PPTX
Object oriented programming
Amit Soni (CTFL)
 
PPTX
OOP Introduction with java programming language
Md.Al-imran Roton
 
PPT
Basic concepts of object oriented programming
Sachin Sharma
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
PDF
Object Oriented Programming Lecture Notes
FellowBuddy.com
 
PDF
Object oriented programming c++
Ankur Pandey
 
PPTX
Introduction to oop
colleges
 
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
PPTX
Chapter 05 classes and objects
Praveen M Jigajinni
 
PPTX
Java abstract class & abstract methods
Shubham Dwivedi
 
PPTX
Object Oriented Programming ppt presentation
AyanaRukasar
 
PPTX
C# Delegates
Raghuveer Guthikonda
 
PPTX
Data types in c++
Venkata.Manish Reddy
 
PPTX
Static Data Members and Member Functions
MOHIT AGARWAL
 
PPTX
Encapsulation
saikat rahman
 
PDF
C++ OOPS Concept
Boopathi K
 
ODP
OOP java
xball977
 
PPTX
Introduction to Java -unit-1
RubaNagarajan
 
PDF
Classes and Objects
yndaravind
 
PPT
Oops ppt
abhayjuneja
 
Object oriented programming
Amit Soni (CTFL)
 
OOP Introduction with java programming language
Md.Al-imran Roton
 
Basic concepts of object oriented programming
Sachin Sharma
 
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Object Oriented Programming Lecture Notes
FellowBuddy.com
 
Object oriented programming c++
Ankur Pandey
 
Introduction to oop
colleges
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Chapter 05 classes and objects
Praveen M Jigajinni
 
Java abstract class & abstract methods
Shubham Dwivedi
 
Object Oriented Programming ppt presentation
AyanaRukasar
 
C# Delegates
Raghuveer Guthikonda
 
Data types in c++
Venkata.Manish Reddy
 
Static Data Members and Member Functions
MOHIT AGARWAL
 
Encapsulation
saikat rahman
 
C++ OOPS Concept
Boopathi K
 
OOP java
xball977
 
Introduction to Java -unit-1
RubaNagarajan
 
Classes and Objects
yndaravind
 
Oops ppt
abhayjuneja
 

Similar to object oriented Programming ppt (20)

PPT
OOP for java
mha4
 
PPTX
object oriented programing lecture 1
Geophery sanga
 
PPTX
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
PPTX
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
PPTX
OOP Presentation.pptx
DurgaPrasadVasantati
 
PPTX
OOP Presentation.pptx
DurgaPrasadVasantati
 
PPT
Object -oriented analysis and design.ppt
pierrerj05
 
PDF
Classes are blueprints for creating objects
SSSs599507
 
PDF
Objectorientedprogrammingconcepts
GizawAssabe
 
PDF
Oops concepts
ACCESS Health Digital
 
PPTX
PPT_Object Oriented Programming .pptx
MDFARHAN3070
 
PPTX
PPT_Object Oriented Programming (2).pptx
faizus786
 
PPTX
java part 1 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
PPTX
4-OOPS.pptx
SatyamMishra237306
 
PPT
Object oriented vs. object based programming
Mohammad Kamrul Hasan
 
PPTX
OOSD1-unit1_1_16_09.pptx
ShobhitSrivastava15887
 
PPT
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
PPTX
2 oop
Ali Baba
 
DOC
Research paper
hirrahAzhar
 
PPTX
OOP lecture 04
University of Chitral
 
OOP for java
mha4
 
object oriented programing lecture 1
Geophery sanga
 
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
SKILLWISE - OOPS CONCEPT
Skillwise Group
 
OOP Presentation.pptx
DurgaPrasadVasantati
 
OOP Presentation.pptx
DurgaPrasadVasantati
 
Object -oriented analysis and design.ppt
pierrerj05
 
Classes are blueprints for creating objects
SSSs599507
 
Objectorientedprogrammingconcepts
GizawAssabe
 
Oops concepts
ACCESS Health Digital
 
PPT_Object Oriented Programming .pptx
MDFARHAN3070
 
PPT_Object Oriented Programming (2).pptx
faizus786
 
java part 1 computer science.pptx
MUHAMMED MASHAHIL PUKKUNNUMMAL
 
4-OOPS.pptx
SatyamMishra237306
 
Object oriented vs. object based programming
Mohammad Kamrul Hasan
 
OOSD1-unit1_1_16_09.pptx
ShobhitSrivastava15887
 
Java Fundamentalojhgghjjjjhhgghhjjjjhhj.ppt
akashsachu221
 
2 oop
Ali Baba
 
Research paper
hirrahAzhar
 
OOP lecture 04
University of Chitral
 
Ad

More from Nitesh Dubey (20)

PPTX
HTML Presentation
Nitesh Dubey
 
PPT
MLApproachToProgramming.ppt
Nitesh Dubey
 
PPT
seminar topic of holography.ppt
Nitesh Dubey
 
PDF
Compiler design.pdf
Nitesh Dubey
 
PPTX
Online shopping ppt
Nitesh Dubey
 
DOCX
Python lab manual all the experiments are available
Nitesh Dubey
 
PDF
Web Technology Lab files with practical
Nitesh Dubey
 
PDF
Theory of automata and formal language lab manual
Nitesh Dubey
 
PDF
Software engineering practical
Nitesh Dubey
 
PDF
Principal of programming language lab files
Nitesh Dubey
 
PDF
database management system lab files
Nitesh Dubey
 
PDF
design and analysis of algorithm Lab files
Nitesh Dubey
 
PDF
Computer Organization And Architecture lab manual
Nitesh Dubey
 
DOCX
industrial training report on Ethical hacking
Nitesh Dubey
 
DOCX
Project synopsis on face recognition in e attendance
Nitesh Dubey
 
DOCX
Hrms industrial training report
Nitesh Dubey
 
DOCX
Industrial training report on core java
Nitesh Dubey
 
PDF
SEWAGE TREATMENT PLANT mini project report
Nitesh Dubey
 
PDF
synopsis report on BIOMETRIC ONLINE VOTING SYSTEM
Nitesh Dubey
 
PPTX
artificial intelligence ppt
Nitesh Dubey
 
HTML Presentation
Nitesh Dubey
 
MLApproachToProgramming.ppt
Nitesh Dubey
 
seminar topic of holography.ppt
Nitesh Dubey
 
Compiler design.pdf
Nitesh Dubey
 
Online shopping ppt
Nitesh Dubey
 
Python lab manual all the experiments are available
Nitesh Dubey
 
Web Technology Lab files with practical
Nitesh Dubey
 
Theory of automata and formal language lab manual
Nitesh Dubey
 
Software engineering practical
Nitesh Dubey
 
Principal of programming language lab files
Nitesh Dubey
 
database management system lab files
Nitesh Dubey
 
design and analysis of algorithm Lab files
Nitesh Dubey
 
Computer Organization And Architecture lab manual
Nitesh Dubey
 
industrial training report on Ethical hacking
Nitesh Dubey
 
Project synopsis on face recognition in e attendance
Nitesh Dubey
 
Hrms industrial training report
Nitesh Dubey
 
Industrial training report on core java
Nitesh Dubey
 
SEWAGE TREATMENT PLANT mini project report
Nitesh Dubey
 
synopsis report on BIOMETRIC ONLINE VOTING SYSTEM
Nitesh Dubey
 
artificial intelligence ppt
Nitesh Dubey
 
Ad

Recently uploaded (20)

PPTX
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PPTX
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
PPTX
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PPTX
Knowledge Representation : Semantic Networks
Amity University, Patna
 
PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PDF
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
PPTX
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
PPTX
Distribution reservoir and service storage pptx
dhanashree78
 
PDF
NTPC PATRATU Summer internship report.pdf
hemant03701
 
PDF
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
PPTX
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
PDF
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
PPTX
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PDF
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
原版一样(EC Lille毕业证书)法国里尔中央理工学院毕业证补办
Taqyea
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
MODULE 03 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
WD2(I)-RFQ-GW-1415_ Shifting and Filling of Sand in the Pond at the WD5 Area_...
ShahadathHossain23
 
How Industrial Project Management Differs From Construction.pptx
jamespit799
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Knowledge Representation : Semantic Networks
Amity University, Patna
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
AN EMPIRICAL STUDY ON THE USAGE OF SOCIAL MEDIA IN GERMAN B2C-ONLINE STORES
ijait
 
仿制LethbridgeOffer加拿大莱斯桥大学毕业证范本,Lethbridge成绩单
Taqyea
 
Distribution reservoir and service storage pptx
dhanashree78
 
NTPC PATRATU Summer internship report.pdf
hemant03701
 
REINFORCEMENT LEARNING IN DECISION MAKING SEMINAR REPORT
anushaashraf20
 
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
AI TECHNIQUES FOR IDENTIFYING ALTERATIONS IN THE HUMAN GUT MICROBIOME IN MULT...
vidyalalltv1
 
MODULE 05 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
20ES1152 Programming for Problem Solving Lab Manual VRSEC.pdf
Ashutosh Satapathy
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 

object oriented Programming ppt

  • 1. Submitted By: Sajjad Ali Khan B.tech (CSE) Roll no - 1736210006 Session 2020-21
  • 3. Content  What is an Object?  What is a Class? What is a Message? Why OOP? Design Principles of OOP  Requirements of Object-Oriented language Step by step explanation Conclusion References
  • 4. What is an Object? An object is a software bundle of related variables and methods. Software objects are often used to model real- world objects you find in everyday life. Visual representation of a software object A bicycle modeled as a software object
  • 5. What is a Class? A class is a blueprint or prototype that defines the variables and the methods common to all objects of a certain kind.  Class is an implementation of an abstract data type and so encapsulates both data and operations.  Object is run-time instance of class. Classes just sit there, objects do the real work. Memory is allocated for Objects not for Classes.
  • 6. What is a Message? Software objects interact and communicate with each other using messages.  The object to which the message is addressed (YourBicycle)  The name of the method to perform (changeGears)  Any parameters needed by the method (lowerGear)
  • 8. To be object oriented, a language must support  Encapsulation  Inheritance  Dynamic Binding Some of the popular OO languages are C++ Smalltalk Java Eiffel FORTRAN90 CLOS(Common Lisp Object System) Ada95 Modula-3
  • 9. Encapsulation: Packaging an object's variables within the protective custody of its methods is called encapsulation. Often, for practical reasons, an object may wish to expose some of its variables or hide some of its methods. Access Levels: Specifier Class Subclass Package World Private X Protected X X X Public X X X X
  • 10. 10
  • 11. What is Inheritance? A class inherits state and behavior from its superclass. Inheritance provides a powerful and natural mechanism for organizing and structuring software programs. Super Class Subclasses
  • 12. Properties: Each subclass inherits state (in the form of variable declarations) from the superclass. Subclasses can add variables and methods to the ones they inherit from the superclass. Subclasses can also override inherited methods and provide specialized implementations for those methods. You are not limited to just one layer of inheritance. The inheritance tree, or class hierarchy, can be as deep as needed. Benefits: Re-Usability Subclasses provide specialized behaviors from the basis of common elements provided by the superclass. Through the use of inheritance, programmers can reuse the code in the superclass many times. Can define Abstract Classes Programmers can implement superclasses called abstract classes that define "generic" behaviors.
  • 13. A B C A B C A-1 A-2 B-1 B-2 AB Multi-level Inheritance Multiple Inheritance Multiple Multi-level Inheritance Types of Inheritance:
  • 14. Dynamic Binding:  Dynamic binding occurs when the type of variable changes at run- time. A common way for a variable to change its type is via assignment. Bike:= MoutainBike is safe MountainBike:=Bike is not safe MountainBike is declared to have all the features of Bike so the assignment does no harm.  A variable that starts life of the type Bike may be attached to any object that is a kind of Bike, including MountainBike,RacingBike,…  A variable that starts life of the type MountainBike can only be attached to MountainBike objects but does not include RacingBike or general Bike.
  • 15. Polymorphism:  The ability to appear in many forms.  In object-oriented programming, polymorphism refers to a programming language's ability to process objects differently depending on their data type or class. It is the ability to redefine methods for derived classes. E.g. e-bike Acceleration system. Electronically / Mechanically

Editor's Notes