SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
thinkphp
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
daxesh chauhan
 

Mais procurados (20)

Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Object Oriented Programming Concepts for beginners
Object Oriented Programming Concepts for beginners Object Oriented Programming Concepts for beginners
Object Oriented Programming Concepts for beginners
 
Object Oriented Programming Languages
Object Oriented Programming LanguagesObject Oriented Programming Languages
Object Oriented Programming Languages
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
object oriented Programming ppt
object oriented Programming pptobject oriented Programming ppt
object oriented Programming ppt
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
 
Java(Polymorphism)
Java(Polymorphism)Java(Polymorphism)
Java(Polymorphism)
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP[OOP - Lec 01] Introduction to OOP
[OOP - Lec 01] Introduction to OOP
 
Basic concepts of object oriented programming
Basic concepts of object oriented programmingBasic concepts of object oriented programming
Basic concepts of object oriented programming
 
CLASS OBJECT AND INHERITANCE IN PYTHON
CLASS OBJECT AND INHERITANCE IN PYTHONCLASS OBJECT AND INHERITANCE IN PYTHON
CLASS OBJECT AND INHERITANCE IN PYTHON
 
Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
 
Object Oriented Programming Lecture Notes
Object Oriented Programming Lecture NotesObject Oriented Programming Lecture Notes
Object Oriented Programming Lecture Notes
 
Object Oriented Programming ppt presentation
Object Oriented Programming ppt presentationObject Oriented Programming ppt presentation
Object Oriented Programming ppt presentation
 
Concepts In Object Oriented Programming Languages
Concepts In Object Oriented Programming LanguagesConcepts In Object Oriented Programming Languages
Concepts In Object Oriented Programming Languages
 
Compare between pop and oop
Compare between pop and oopCompare between pop and oop
Compare between pop and oop
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming c++
Object oriented programming c++Object oriented programming c++
Object oriented programming c++
 
Principles and advantages of oop ppt
Principles and advantages of oop pptPrinciples and advantages of oop ppt
Principles and advantages of oop ppt
 
Concepts of oops
Concepts of oopsConcepts of oops
Concepts of oops
 

Destaque

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

Destaque (10)

Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
 
Oops ppt
Oops pptOops ppt
Oops ppt
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Object oriented programming concept
Object oriented programming conceptObject oriented programming concept
Object oriented programming concept
 
Object Oriented Software Engineering
Object Oriented Software EngineeringObject Oriented Software Engineering
Object Oriented Software Engineering
 
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
 

Semelhante a 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
 

Semelhante a 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
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Último (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
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...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

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