SlideShare une entreprise Scribd logo
1  sur  18
Course Objective
Objective of this course is to make students familiar
 with the concepts of object-oriented programming

Concepts will be reinforced by their implementation
 in C++
Course Contents
Object-Orientation
Objects and Classes
Overloading
Inheritance
Polymorphism
Generic Programming
Exception Handling
Introduction to Design Patterns
Books
C++ How to Program
  By Deitel & Deitel

The C++ Programming Language
  By Bjarne Stroustrup


Object-Oriented Software Engineering
  By Jacobson, Christerson, Jonsson, Overgaard
Marks Distribution
 Assignments/Quizes                  10%
 Presentation                      5%
 Attendance                           5%
 Mid Term                                       20 %
Grading Policy
Marks Range (in %) Grade Point (Value)   Grade
91 and above       4.0                    A+
85-90              4.0                   A
77-84              3.5                   B+
70-76              3.0                   B
60-69              2.5                   C+
50-59             2.0                    C
Below 50          0.0                    F
What is Object-Orientation?
A technique for system modeling


OO model consists of several interacting objects
What is a Model?
A model is an abstraction of something


Purpose is to understand the product before
 developing it
Examples – Model
Highway maps


Architectural models


Mechanical models
Example – OO Model
…Example – OO Model
                 lives-in
                              Ali        House
Objects
  Abu Bakar                    drives
  House
  Car
                          Car            Tree
  Tree
Interactions
  Abu Bakar lives in the house
  Abu Bakar drives the car
Object-Orientation - Advantages
People think in terms of objects


OO models map to reality


Therefore, OO models are
  easy to develop
  easy to understand
What is an Object?
An object is

Something tangible (Ali, Car)


Something that can be apprehended intellectually
 (Time, Date)
… What is an Object?
An object has

State (attributes)
Well-defined behaviour (operations)
Unique identity
Example – Ali is a Tangible Object
State (attributes)
  Name
  Age
behaviour (operations)
  Walks
  Eats
Identity
  His name
Example – Car is a Tangible Object
State (attributes)
  - Color
  - Model
behaviour (operations)
  - Accelerate                - Start Car
  - Change Gear
Identity
  - Its registration number
Example – Time is an Object
Apprehended Intellectually
State (attributes)
  - Hours                 - Seconds
  - Minutes
behaviour (operations)
  - Set Hours             - Set Seconds
  - Set Minutes
Identity
  - Would have a unique ID in the model
Example – Date is an Object
Apprehended Intellectually
State (attributes)
  - Year                  - Day
  - Month
behaviour (operations)
  - Set Year      - Set Day
  - Set Month
Identity
  - Would have a unique ID in the model

Contenu connexe

Tendances

Introduction to oop
Introduction to oop Introduction to oop
Introduction to oop
Kumar
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
dheva B
 

Tendances (20)

Object-Oriented Programming Concepts
Object-Oriented Programming ConceptsObject-Oriented Programming Concepts
Object-Oriented Programming Concepts
 
Object oriented programming concept
Object oriented programming conceptObject oriented programming concept
Object oriented programming concept
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programming
 
object oriented Programming ppt
object oriented Programming pptobject oriented Programming ppt
object oriented Programming ppt
 
Object Oriented Programming Concepts for beginners
Object Oriented Programming Concepts for beginners Object Oriented Programming Concepts for beginners
Object Oriented Programming Concepts for beginners
 
Lecture 1 oop
Lecture 1 oopLecture 1 oop
Lecture 1 oop
 
Basics of Object Oriented Programming in Python
Basics of Object Oriented Programming in PythonBasics of Object Oriented Programming in Python
Basics of Object Oriented Programming in Python
 
Object Oriented Programming in Python
Object Oriented Programming in PythonObject Oriented Programming in Python
Object Oriented Programming in Python
 
Introduction to oop
Introduction to oop Introduction to oop
Introduction to oop
 
Object Oriented Programming Languages
Object Oriented Programming LanguagesObject Oriented Programming Languages
Object Oriented Programming Languages
 
Object Oriented Language
Object Oriented LanguageObject Oriented Language
Object Oriented Language
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
 
Object Oriented Programming ppt presentation
Object Oriented Programming ppt presentationObject Oriented Programming ppt presentation
Object Oriented Programming ppt presentation
 
Object Oriented Concepts and Principles
Object Oriented Concepts and PrinciplesObject Oriented Concepts and Principles
Object Oriented Concepts and Principles
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
 
Object Oriented Programming Lecture Notes
Object Oriented Programming Lecture NotesObject Oriented Programming Lecture Notes
Object Oriented Programming Lecture Notes
 
Object Oriented Programming Using C++
Object Oriented Programming Using C++Object Oriented Programming Using C++
Object Oriented Programming Using C++
 
OOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOPOOP - Benefits and advantages of OOP
OOP - Benefits and advantages of OOP
 

En vedette

Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering concepts
Komal Singh
 

En vedette (9)

Oops ppt
Oops pptOops ppt
Oops ppt
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Object Oriented Software Engineering
Object Oriented Software EngineeringObject Oriented Software Engineering
Object Oriented Software Engineering
 
Concepts In Object Oriented Programming Languages
Concepts In Object Oriented Programming LanguagesConcepts In Object Oriented Programming Languages
Concepts In Object Oriented Programming Languages
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Bus tracking application in Android
Bus tracking application in AndroidBus tracking application in Android
Bus tracking application in Android
 
Online recruitment system
Online recruitment systemOnline recruitment system
Online recruitment system
 
Object oriented software engineering concepts
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering concepts
 

Similaire à Object oriented programming (oop) cs304 power point slides lecture 01

Object Modelling Technique " ooad "
Object Modelling Technique  " ooad "Object Modelling Technique  " ooad "
Object Modelling Technique " ooad "
AchrafJbr
 
Object Oriented Concept
Object Oriented ConceptObject Oriented Concept
Object Oriented Concept
smj
 
OOP programming
OOP programmingOOP programming
OOP programming
anhdbh
 

Similaire à Object oriented programming (oop) cs304 power point slides lecture 01 (20)

Oot
OotOot
Oot
 
C-ing the Future
C-ing the FutureC-ing the Future
C-ing the Future
 
Software Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-iSoftware Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-i
 
OOP Lecture 01.pptx
OOP Lecture 01.pptxOOP Lecture 01.pptx
OOP Lecture 01.pptx
 
Object Modelling Technique " ooad "
Object Modelling Technique  " ooad "Object Modelling Technique  " ooad "
Object Modelling Technique " ooad "
 
Ooad unit – 1 introduction
Ooad unit – 1 introductionOoad unit – 1 introduction
Ooad unit – 1 introduction
 
M01_OO_Intro.ppt
M01_OO_Intro.pptM01_OO_Intro.ppt
M01_OO_Intro.ppt
 
Handout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and DesignHandout on Object orienetd Analysis and Design
Handout on Object orienetd Analysis and Design
 
COMP111-Week-1_138439.pptx
COMP111-Week-1_138439.pptxCOMP111-Week-1_138439.pptx
COMP111-Week-1_138439.pptx
 
ooadunitiintroduction-150730050129-lva1-app6892.pptx
ooadunitiintroduction-150730050129-lva1-app6892.pptxooadunitiintroduction-150730050129-lva1-app6892.pptx
ooadunitiintroduction-150730050129-lva1-app6892.pptx
 
ppt_ooad.pdf
ppt_ooad.pdfppt_ooad.pdf
ppt_ooad.pdf
 
Paradigm Wars: Object Oriented Vs Functional Programming in creating MarkParser
Paradigm Wars: Object Oriented Vs Functional Programming in creating MarkParserParadigm Wars: Object Oriented Vs Functional Programming in creating MarkParser
Paradigm Wars: Object Oriented Vs Functional Programming in creating MarkParser
 
Object Oriented Concept
Object Oriented ConceptObject Oriented Concept
Object Oriented Concept
 
Seng 123 8-ooad
Seng 123 8-ooadSeng 123 8-ooad
Seng 123 8-ooad
 
Design patterns
Design patternsDesign patterns
Design patterns
 
Oop cocepts
Oop coceptsOop cocepts
Oop cocepts
 
Oop cocepts
Oop coceptsOop cocepts
Oop cocepts
 
Object oriented progrmming
Object oriented progrmmingObject oriented progrmming
Object oriented progrmming
 
Oop lecture 01
Oop lecture 01Oop lecture 01
Oop lecture 01
 
OOP programming
OOP programmingOOP programming
OOP programming
 

Dernier

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 

Dernier (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 

Object oriented programming (oop) cs304 power point slides lecture 01

  • 1.
  • 2. Course Objective Objective of this course is to make students familiar with the concepts of object-oriented programming Concepts will be reinforced by their implementation in C++
  • 3. Course Contents Object-Orientation Objects and Classes Overloading Inheritance Polymorphism Generic Programming Exception Handling Introduction to Design Patterns
  • 4. Books C++ How to Program By Deitel & Deitel The C++ Programming Language By Bjarne Stroustrup Object-Oriented Software Engineering By Jacobson, Christerson, Jonsson, Overgaard
  • 5. Marks Distribution  Assignments/Quizes 10%  Presentation 5%  Attendance 5%  Mid Term 20 % Grading Policy Marks Range (in %) Grade Point (Value) Grade 91 and above 4.0 A+ 85-90 4.0 A 77-84 3.5 B+ 70-76 3.0 B 60-69 2.5 C+ 50-59 2.0 C Below 50 0.0 F
  • 6.
  • 7. What is Object-Orientation? A technique for system modeling OO model consists of several interacting objects
  • 8. What is a Model? A model is an abstraction of something Purpose is to understand the product before developing it
  • 9. Examples – Model Highway maps Architectural models Mechanical models
  • 10. Example – OO Model
  • 11. …Example – OO Model lives-in Ali House Objects Abu Bakar drives House Car Car Tree Tree Interactions Abu Bakar lives in the house Abu Bakar drives the car
  • 12. Object-Orientation - Advantages People think in terms of objects OO models map to reality Therefore, OO models are easy to develop easy to understand
  • 13. What is an Object? An object is Something tangible (Ali, Car) Something that can be apprehended intellectually (Time, Date)
  • 14. … What is an Object? An object has State (attributes) Well-defined behaviour (operations) Unique identity
  • 15. Example – Ali is a Tangible Object State (attributes) Name Age behaviour (operations) Walks Eats Identity His name
  • 16. Example – Car is a Tangible Object State (attributes) - Color - Model behaviour (operations) - Accelerate - Start Car - Change Gear Identity - Its registration number
  • 17. Example – Time is an Object Apprehended Intellectually State (attributes) - Hours - Seconds - Minutes behaviour (operations) - Set Hours - Set Seconds - Set Minutes Identity - Would have a unique ID in the model
  • 18. Example – Date is an Object Apprehended Intellectually State (attributes) - Year - Day - Month behaviour (operations) - Set Year - Set Day - Set Month Identity - Would have a unique ID in the model