SlideShare a Scribd company logo
8
Most read
13
Most read
15
Most read
CST 205 Object Oriented Programming using Java
CST 281 Object Oriented Programming
(As per KTU 2019 Syllabus)
Module 1, Lecture 1
Module 1 Lecture
1
► Approaches to Software Design. Functional Oriented Design, Object
Oriented Design, Case Study of Automated Fire Alarm System
► Object Modeling Using Unified Modeling Language. Basic Object Oriented
concepts, UML diagrams, Use case model, Class diagram, Interaction diagram,
Activity diagram, State chart diagram
► Introduction to Java Java programming. Environment and Runtime
Environment, Development Platforms - Standard, Enterprise. Java Virtual
Machine, Java compiler, Bytecode, Java applet Java Buzzwords, Java program
structure, Comments, Garbage Collection, Lexical Issues
What is software?
● Software is a set of instructions, data or programs used
to operate computers and execute specific tasks
● Software is a set of instructions that tell a computer what
to do.
● Without software, most computers would be useless. For
example, without your Internet browser software, you
could not surf the Internet. Without an operating system,
you cannot even login to your system.
● The term was coined to differentiate these instructions
from hardware.
● By the term software, we referring to all variants such as
Middleware, O.S, Firmware etc.
Types of software
There are two types of software
1. System Software
2. Application Software
● Examples of system software are Operating System, Compilers, Interpreter,
Assemblers, etc.
● Examples of Application software are Railways Reservation Software, Microsoft
Office Suite Software, Microsoft Word, etc.
Software Design
Software design is a process to transform user
requirements into some suitable form, which helps the
programmer in software coding and implementation.
Software design is the process by which an agent creates
a specification of a software artifact, intended to
accomplish goals, using a set of primitive components and
subject to constraints.
Software Design
The design process for software systems often has two levels. At the first level the
focus is on deciding which modules are needed for the system on the basis of
SRS (Software Requirement Specification) and how the modules should be
interconnected.
It tries to specify how to fulfill the requirements mentioned in SRS document.
Approaches to Software Design
There are two generic software development approaches.
Function Oriented Design (FOD)
● FOD is an approach to software design where
the design is decomposed into a set of
interacting units where each unit has a clearly
defined function.
● This design mechanism divides the whole
system into smaller functions
● Starting at this high level view of the system,
each function is successively refined into more
detailed functions
● The system state is centralized and shared
among different functions
● Top down approach
Global variables
Function Oriented Design (FOD)
● At first FOD views a system as a black-box that provides a
set of services to the users of the software.
● These services provided by a software to its users are also
known as the high-level functions supported by the
software.
● During the design process, these high-level functions are
successively decomposed into more detailed functions.
● The term top-down decomposition is often used to denote
the successive decomposition of a set of high-level
functions into more detailed functions.
Functional Oriented Design (FOD)
These functional modules can share information among
themselves by means of information passing and using
information available globally.
Eg: Banking process
Here withdraw, deposit, transfer are functions and that
can be divided into subfunctions again.
So, in FOD, the entire problem is divided in to number of
functions and those functions are broken down into smaller
functions and these smaller functions are converted in to
software modules.
Object Oriented Design (OOD)
● OOD is based on Objects and interaction between the
objects. Interaction between objects is called message
communication.
● In the object-oriented design approach, the system is viewed
as a collection of objects (i.e. entities).
● It involves the designing of objects, classes and the
relationship between the classes
● The state is decentralized among the objects and
each object manages its own state information.
● OOD follows bottom up approach
Consider the example of Banking process.
● Here, customer, money and account are objects
Object Oriented Design (OOD)
For example, in banking example,each customer may be a separate object with its
own data and functions to operate on these data.
Functions defined for one object cannot refer or change data of other objects.
Objects have their own internal data which define their state.
Similar objects constitute a class. In other words, each object is an instance of
some class.
Classes may inherit features from super class. Conceptually, objects
communicate by message passing.
FOD vs OOD
Case study: Automated fire alarm
The owner of a large multi-storied building wants to have a computerized fire alarm
system for his building. Smoke detectors and fire alarms would be placed in each
room of the building. The fire alarm system would monitor the status of these
smoke detectors. Whenever a fire condition is reported by any of the smoke
detectors, the fire alarm system should determine the location at which the fire
condition is reported by any of the smoke detectors, the fire alarm system should
determine the location at which the fire condition has occurred and then sound the
alarms only in the neighboring locations. The fire alarm system should also flash
an alarm message on the computer console. Fire fighting personnel, man the
console round the clock. After a fire condition has been successfully handled, the
fire alarm system should support resetting the alarms by the fire fighting personnel.
FOD: Automated fire alarm
OOD: Automated fire alarm
END OF LECTURE 1
References
● Rajib Mall, Fundamentals of Software Engineering, 4th edition, PHI, 2014.
● GeeksforGeeks - www.geeksforgeeks.org
● Wikipedia - www.wikipedia.org
● Tutorialspoint - www.tutorialspoint.com
● Disclaimer - This document contains images/texts from various internet
sources. Copyright belongs to the respective content creators. Document is
compiled exclusively for study purpose and shall not be used for commercial
purpose.

More Related Content

What's hot (20)

PDF
System calls
AfshanKhan51
 
PDF
Embedded systems basics
Mathivanan Natarajan
 
PPTX
Production System
Varunjeet Singh Rekhi
 
PDF
Data Structure and its Fundamentals
Hitesh Mohapatra
 
PPTX
Memory Organization
Kamal Acharya
 
PDF
NLP tutorial at AIME 2020
Rui Zhang
 
PDF
Seven segment interfacing with 8051.pdf
Srikrishna Thota
 
PDF
Associative memory
NancyBeaulah_R
 
PPTX
Dealing with inconsistency
Rajat Sharma
 
PPTX
Combined paging and segmentation
Tech_MX
 
PDF
UNIT-V.pdf daa unit material 5 th unit ppt
JyoReddy9
 
PPT
Disk structure
Shareb Ismaeel
 
PDF
A* Search Algorithm
vikas dhakane
 
PPTX
Nehalem (microarchitecture)
Amirali Sharifian
 
PPTX
Loops in flow
indhu mathi
 
PDF
Extracting keywords from texts - Sanda Martincic Ipsic
Institute of Contemporary Sciences
 
PPTX
Practical Swarm Optimization (PSO)
khashayar Danesh Narooei
 
PPT
Disk structure
Agnas Jasmine
 
PPTX
Asymptotic notations
Nikhil Sharma
 
PPTX
Modes of transfer
Andhra University
 
System calls
AfshanKhan51
 
Embedded systems basics
Mathivanan Natarajan
 
Production System
Varunjeet Singh Rekhi
 
Data Structure and its Fundamentals
Hitesh Mohapatra
 
Memory Organization
Kamal Acharya
 
NLP tutorial at AIME 2020
Rui Zhang
 
Seven segment interfacing with 8051.pdf
Srikrishna Thota
 
Associative memory
NancyBeaulah_R
 
Dealing with inconsistency
Rajat Sharma
 
Combined paging and segmentation
Tech_MX
 
UNIT-V.pdf daa unit material 5 th unit ppt
JyoReddy9
 
Disk structure
Shareb Ismaeel
 
A* Search Algorithm
vikas dhakane
 
Nehalem (microarchitecture)
Amirali Sharifian
 
Loops in flow
indhu mathi
 
Extracting keywords from texts - Sanda Martincic Ipsic
Institute of Contemporary Sciences
 
Practical Swarm Optimization (PSO)
khashayar Danesh Narooei
 
Disk structure
Agnas Jasmine
 
Asymptotic notations
Nikhil Sharma
 
Modes of transfer
Andhra University
 

Similar to Lecture1 cst205 cst281-oop (20)

PDF
SWE-401 - 7. Software Design Strategies
ghayour abbas
 
PPT
Ooad
gantib
 
PPTX
Software design strategies in Software engineering
dhandesumit71
 
PDF
Object oriented analysis and design unit- i
Shri Shankaracharya College, Bhilai,Junwani
 
PPTX
Software Design and Architecture - Introduction
qudsiayousaf1
 
PDF
Bt0081 software engineering
Techglyphs
 
PPT
Design engineering
Vikram Dahiya
 
PPT
Design engineering
Vikram Dahiya
 
PPTX
Introduction to Software Engineering_Need_SDLC_types of SDLC
DeepakUlape2
 
PPTX
OOSD_UNIT1 (1).pptx
DebabrataPain1
 
PDF
502 Object Oriented Analysis and Design.pdf
PradeepPandey506579
 
PPTX
UNIT_III_Design Engineering, design engineering, architecture, patterns, UML ...
MANOJ964697
 
PPTX
Architecture and UML diagrams, types of UML diagrams, types of architecture a...
MANOJ964697
 
PPT
software Design.ppt
Satyanandaram Nandigam
 
PDF
Software requirementspecification
oshin-japanese
 
PDF
Software Design And Analysis Ii Lecture Notes Cuny Csci235 Itebooks
leemonadsiz
 
PPT
Unit-1 OOMD- Inthhro- class modeling.ppt
ChiragSuresh
 
PPT
3.o o design -_____________lecture 3
Warui Maina
 
PPT
Different approaches to software design
Sandeep Kumar Nayak
 
PPTX
Unit_4_Software_Design.pptx
taxegap762
 
SWE-401 - 7. Software Design Strategies
ghayour abbas
 
Ooad
gantib
 
Software design strategies in Software engineering
dhandesumit71
 
Object oriented analysis and design unit- i
Shri Shankaracharya College, Bhilai,Junwani
 
Software Design and Architecture - Introduction
qudsiayousaf1
 
Bt0081 software engineering
Techglyphs
 
Design engineering
Vikram Dahiya
 
Design engineering
Vikram Dahiya
 
Introduction to Software Engineering_Need_SDLC_types of SDLC
DeepakUlape2
 
OOSD_UNIT1 (1).pptx
DebabrataPain1
 
502 Object Oriented Analysis and Design.pdf
PradeepPandey506579
 
UNIT_III_Design Engineering, design engineering, architecture, patterns, UML ...
MANOJ964697
 
Architecture and UML diagrams, types of UML diagrams, types of architecture a...
MANOJ964697
 
software Design.ppt
Satyanandaram Nandigam
 
Software requirementspecification
oshin-japanese
 
Software Design And Analysis Ii Lecture Notes Cuny Csci235 Itebooks
leemonadsiz
 
Unit-1 OOMD- Inthhro- class modeling.ppt
ChiragSuresh
 
3.o o design -_____________lecture 3
Warui Maina
 
Different approaches to software design
Sandeep Kumar Nayak
 
Unit_4_Software_Design.pptx
taxegap762
 
Ad

More from ktuonlinenotes (12)

PDF
Oop suplemnertary september 2019
ktuonlinenotes
 
PDF
Oop sample ktu
ktuonlinenotes
 
PDF
Oop r&s may 2019
ktuonlinenotes
 
PDF
Oop r&s may 2019 (2)
ktuonlinenotes
 
PDF
Oop july 2017
ktuonlinenotes
 
PDF
Oop december 2018
ktuonlinenotes
 
PDF
Oop april 2018
ktuonlinenotes
 
PDF
Module 1 uml - usecase digram
ktuonlinenotes
 
PDF
Module 1 uml - interaction diagram
ktuonlinenotes
 
PDF
Lecture 4-oop class diagram
ktuonlinenotes
 
PDF
Lecture 2 cst 205-281 oop
ktuonlinenotes
 
PDF
Lecture 3 cst205 cst281-oop
ktuonlinenotes
 
Oop suplemnertary september 2019
ktuonlinenotes
 
Oop sample ktu
ktuonlinenotes
 
Oop r&s may 2019
ktuonlinenotes
 
Oop r&s may 2019 (2)
ktuonlinenotes
 
Oop july 2017
ktuonlinenotes
 
Oop december 2018
ktuonlinenotes
 
Oop april 2018
ktuonlinenotes
 
Module 1 uml - usecase digram
ktuonlinenotes
 
Module 1 uml - interaction diagram
ktuonlinenotes
 
Lecture 4-oop class diagram
ktuonlinenotes
 
Lecture 2 cst 205-281 oop
ktuonlinenotes
 
Lecture 3 cst205 cst281-oop
ktuonlinenotes
 
Ad

Recently uploaded (20)

PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
PPTX
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
Pyhton with Mysql to perform CRUD operations.pptx
Ramakrishna Reddy Bijjam
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 

Lecture1 cst205 cst281-oop

  • 1. CST 205 Object Oriented Programming using Java CST 281 Object Oriented Programming (As per KTU 2019 Syllabus) Module 1, Lecture 1
  • 2. Module 1 Lecture 1 ► Approaches to Software Design. Functional Oriented Design, Object Oriented Design, Case Study of Automated Fire Alarm System ► Object Modeling Using Unified Modeling Language. Basic Object Oriented concepts, UML diagrams, Use case model, Class diagram, Interaction diagram, Activity diagram, State chart diagram ► Introduction to Java Java programming. Environment and Runtime Environment, Development Platforms - Standard, Enterprise. Java Virtual Machine, Java compiler, Bytecode, Java applet Java Buzzwords, Java program structure, Comments, Garbage Collection, Lexical Issues
  • 3. What is software? ● Software is a set of instructions, data or programs used to operate computers and execute specific tasks ● Software is a set of instructions that tell a computer what to do. ● Without software, most computers would be useless. For example, without your Internet browser software, you could not surf the Internet. Without an operating system, you cannot even login to your system. ● The term was coined to differentiate these instructions from hardware. ● By the term software, we referring to all variants such as Middleware, O.S, Firmware etc.
  • 4. Types of software There are two types of software 1. System Software 2. Application Software ● Examples of system software are Operating System, Compilers, Interpreter, Assemblers, etc. ● Examples of Application software are Railways Reservation Software, Microsoft Office Suite Software, Microsoft Word, etc.
  • 5. Software Design Software design is a process to transform user requirements into some suitable form, which helps the programmer in software coding and implementation. Software design is the process by which an agent creates a specification of a software artifact, intended to accomplish goals, using a set of primitive components and subject to constraints.
  • 6. Software Design The design process for software systems often has two levels. At the first level the focus is on deciding which modules are needed for the system on the basis of SRS (Software Requirement Specification) and how the modules should be interconnected. It tries to specify how to fulfill the requirements mentioned in SRS document.
  • 7. Approaches to Software Design There are two generic software development approaches.
  • 8. Function Oriented Design (FOD) ● FOD is an approach to software design where the design is decomposed into a set of interacting units where each unit has a clearly defined function. ● This design mechanism divides the whole system into smaller functions ● Starting at this high level view of the system, each function is successively refined into more detailed functions ● The system state is centralized and shared among different functions ● Top down approach Global variables
  • 9. Function Oriented Design (FOD) ● At first FOD views a system as a black-box that provides a set of services to the users of the software. ● These services provided by a software to its users are also known as the high-level functions supported by the software. ● During the design process, these high-level functions are successively decomposed into more detailed functions. ● The term top-down decomposition is often used to denote the successive decomposition of a set of high-level functions into more detailed functions.
  • 10. Functional Oriented Design (FOD) These functional modules can share information among themselves by means of information passing and using information available globally. Eg: Banking process Here withdraw, deposit, transfer are functions and that can be divided into subfunctions again. So, in FOD, the entire problem is divided in to number of functions and those functions are broken down into smaller functions and these smaller functions are converted in to software modules.
  • 11. Object Oriented Design (OOD) ● OOD is based on Objects and interaction between the objects. Interaction between objects is called message communication. ● In the object-oriented design approach, the system is viewed as a collection of objects (i.e. entities). ● It involves the designing of objects, classes and the relationship between the classes ● The state is decentralized among the objects and each object manages its own state information. ● OOD follows bottom up approach Consider the example of Banking process. ● Here, customer, money and account are objects
  • 12. Object Oriented Design (OOD) For example, in banking example,each customer may be a separate object with its own data and functions to operate on these data. Functions defined for one object cannot refer or change data of other objects. Objects have their own internal data which define their state. Similar objects constitute a class. In other words, each object is an instance of some class. Classes may inherit features from super class. Conceptually, objects communicate by message passing.
  • 14. Case study: Automated fire alarm The owner of a large multi-storied building wants to have a computerized fire alarm system for his building. Smoke detectors and fire alarms would be placed in each room of the building. The fire alarm system would monitor the status of these smoke detectors. Whenever a fire condition is reported by any of the smoke detectors, the fire alarm system should determine the location at which the fire condition is reported by any of the smoke detectors, the fire alarm system should determine the location at which the fire condition has occurred and then sound the alarms only in the neighboring locations. The fire alarm system should also flash an alarm message on the computer console. Fire fighting personnel, man the console round the clock. After a fire condition has been successfully handled, the fire alarm system should support resetting the alarms by the fire fighting personnel.
  • 16. OOD: Automated fire alarm END OF LECTURE 1
  • 17. References ● Rajib Mall, Fundamentals of Software Engineering, 4th edition, PHI, 2014. ● GeeksforGeeks - www.geeksforgeeks.org ● Wikipedia - www.wikipedia.org ● Tutorialspoint - www.tutorialspoint.com ● Disclaimer - This document contains images/texts from various internet sources. Copyright belongs to the respective content creators. Document is compiled exclusively for study purpose and shall not be used for commercial purpose.