Introduction To OOP 1.0 Fundamentals Of Java Programming Language 2.0 Exception Handling 3.0 Classes, Inheritance And Polymorphism 4.0 1 © 2011 | PN AZRINA.

Slides:



Advertisements
Similar presentations
7M701 1 Information Systems Modelling and Design with.
Advertisements

CIT731: Database Development Object Oriented Modeling (OOM)
UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Chapter 1 Object Oriented Analysis and Design. UML, Patterns, and Object-Oriented Analysis and Design  The essential skills for the creation of well-designed,
Unified Modeling Language
Object-Oriented Analysis and Design
Introduction To System Analysis and Design
UML – Class Diagrams.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
Basic OOP Concepts and Terms
Systems Analysis & Design Sixth Edition Systems Analysis & Design Sixth Edition Toolkit Part 5.
© Copyright Eliyahu Brutman Programming Techniques Course.
Introduction To OOP 1.0 Fundamentals Of Java Programming Language 2.0 Exception Handling 3.0 Classes, Inheritance And Polymorphism
Introduction To System Analysis and design
Object Oriented Analysis By: Don Villanueva CS 524 Software Engineering I Fall I 2007 – Sheldon X. Liang, Ph. D.
CS212: Object Oriented Analysis and Design Lecture 1: Introduction.
CIT UPES | Sept 2013 | Unified Modeling Language - UML.
Unified Modeling Language, Version 2.0
1 SYS366 Lecture Visual Modeling and Business Use Case Diagrams.
Lecture 3: Visual Modeling & UML 1. 2 Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship via “ Modeling.
Chapter 6: Structured Vs. Object Oriented Analysis and Design.
Introduction To System Analysis and Design
Object-Oriented Analysis and Design An Introduction.
Programming in Java Unit 3. Learning outcome:  LO2:Be able to design Java solutions  LO3:Be able to implement Java solutions Assessment criteria: 
System Analysis System Analysis - Mr. Ahmad Al-Ghoul System Analysis and Design.
Copyright 2002 Prentice-Hall, Inc. Chapter 2 Object-Oriented Analysis and Design Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey.
Sommerville 2004,Mejia-Alvarez 2009Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
1 COMP 350: Object Oriented Analysis and Design Lecture 1Introduction References: Craig Larman Chapter 1.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
1/26 On-demand Learning Series Software Engineering of Web Application - Object-Oriented Development & UML Hunan University, Software School.
Unified Modeling Language. Object Oriented Methods ► What are object-oriented (OO) methods?  OO methods provide a set of techniques for analyzing, decomposing,
Object-Oriented Modeling: Static Models. Object-Oriented Modeling Model the system as interacting objects Model the system as interacting objects Match.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Introduction to OOAD and the UML
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
Chapter 1 OBJECT-ORIENTED ANALYSIS AND DESIGN Objectives Describe the book goals and scope Define OOA/D (Object-Oriented Analysis and Design) Illustrate.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
21/1/ Analysis - Model of real-world situation - What ? System Design - Overall architecture (sub-systems) Object Design - Refinement of Design.
Fall 2007 Week 9: UML Overview MSIS 670: Object-Oriented Software Engineering.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
1 SYS366 Week 2 - Lecture 2 Visual Modeling & UML.
Object Oriented Analysis & Design By Rashid Mahmood.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
1 Design Object Oriented Solutions Object Oriented Analysis & Design Lecturer: Mr. Mohammed Elhajj
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Elaboration popo.
UML Diagrams By Daniel Damaris Novarianto S..
UNIT 1.
Chapter 6: Structured Vs. Object Oriented Analysis and Design.
Chapter 5: Object Oriented Analysis and Design
Chapter 1 OBJECT-ORIENTED ANALYSIS AND DESIGN
Unified Modeling Language
FP301 Object Oriented Programming
UML Diagrams Jung Woo.
Software Architecture & Design Pattern
Unified Modeling Language
UML profiles.
Software Design Lecture : 15.
Software Design Lecture : 14.
Chapter 6: Structured Vs. Object Oriented Analysis and Design.
Copyright 2007 Oxford Consulting, Ltd
Basic OOP Concepts and Terms
Chapter 22 Object-Oriented Systems Analysis and Design and UML
Presentation transcript:

Introduction To OOP 1.0 Fundamentals Of Java Programming Language 2.0 Exception Handling 3.0 Classes, Inheritance And Polymorphism © 2011 | PN AZRINA BINTI TAHIR

2

Define object, attribute and behavior 1 Explain Object-Oriented Analysis and Design (OOAD) method in solving problem 2 Understand the fundamental of Unified Modeling Language (UML) 3 Describe general UML elements 4 Analyze a problem using object-oriented analysis and design (OOAD) 5 Design classes form which objects will be created using UML Class Diagram 6 3 © 2011 | PN AZRINA BINTI TAHIR

Objects ▫ Instance of a class. ▫ Can be defined as a thing. ▫ Set of attribute and behavior. Attribute ▫ Characteristic of the object ▫ State of an object Behavior ▫ Process or operation of the object that usually modify the state of an attribute. © 2011 | PN AZRINA BINTI TAHIR 4

5 ObjectCar Attribute-Color -No of tire -No of door -Chassis Operation-Driving

© 2011 | PN AZRINA BINTI TAHIR 6 Object-oriented analysis and design (OOAD) is a software engineering approach that models a system as a group of interacting objects. Each object represents some entity of interest in the system being modeled, and is characterized by its class, its state (attribute), and its behavior. It also can be define as a process of analyzing and designing a system from an object-oriented point of view. Various models can be created to show the static structure, dynamic behavior, and run-time deployment of these collaborating objects. There are a number of different notations for representing these models, such as the Unified Modeling Language (UML).

© 2011 | PN AZRINA BINTI TAHIR 7 To emphasize a problem domain and logical solution from the perspective of objects (things, concepts or entities) OO Analysis ▫ To find and describe the objects or concepts in the problem domain. ▫ For example in the Library Information System, some of the concepts include Book, Library and Patron. OO Design ▫ To define software objects (attributes and operations) and how they collaborate to fulfill the requirements that will be implemented in an OO programming language. ▫ For example in the Library Information System, a Book is an object that have a title as it attribute and getChapter as the method. OO Programming ▫ Design components are implemented.

The Unified Modeling Language or UML is a language for specifying, visualizing, constructing and documenting the artifacts of software systems, as well as for business modeling and other non-software system. It is also a graphical modeling language that is used to express designs. It is a standardized language in which to specify the artifacts and components of a software system. It is important to understand that the UML describes a notation and not a process. It does not put forth a single method or process of design, but rather is a standardized tool that can be used in a design process. © 2011 | PN AZRINA BINTI TAHIR 8

There is nine(9) diagram that can be used in UML :- © 2011 | PN AZRINA BINTI TAHIR 9 DiagramDescription Use case diagram show actors (people or other users of the system), use cases (the scenarios when they use the system), and their relationships Class diagramThe class diagram is core to object-oriented design. It describes the types of objects in the system, show classes and the relationships between them Sequence diagramshow objects and a sequence of method calls they make to other objects. Collaboration diagram show objects and their relationship, putting emphasis on the objects that participate in the message exchange State diagramshow states, state changes and events in an object or a part of the system Activity diagramshow activities and the changes from one activity to another with the events occurring in some part of the system Component diagram show the high level programming components (such as KParts or Java Beans). Deployment diagram show the instances of the components and their relationships. Entity relationship diagram show data and the relationships and constraints between the data.

UML offers a standard way to visualize a system's architectural blueprints, including elements such as: ▫ activities ▫ actors ▫ business processes ▫ database schemas ▫ (logical) components ▫ programming language statements ▫ reusable software components. © 2011 | PN AZRINA BINTI TAHIR 10

© 2011 | PN AZRINA BINTI TAHIR 11 To analyze a problem (case study), there will be three(3) main factor to be considered which is:- ▫ Identify problem domain ▫ Identify objects ▫ Identify object attributes and operations Example of case study: DirectClothing Inc. Sells shirts from their catalog. Business is growing 30 percent per year and they need a new order entry system. You have been contracted by DirectClothing to design the new system. DirectClothing produces a catalog of clothing every six months and mails it to subscribers. Each shirt in the catalog has an item identifier (ID), one or more colors (each with a different color code), one or more sizes, a description and a price. DirectClothing accepts cheques and credit cards. to place an order, customers can call DirectClothing to order directly from a customer service representative (CSR) or customers can mail or fax an order form to DirectClothing.

© 2011 | PN AZRINA BINTI TAHIR 12 A problem domain is the scope of the problem that need to be solve. For example, “Create a system allowing order entry people to enter and accept payment for an order”.

© 2011 | PN AZRINA BINTI TAHIR 13 Objects can be physical or conceptual. Object have attributes (characteristics). ▫ Size, name, shape and so on. Object have operations (the things they can do) Setting a value, displaying a screen or increasing speed.

© 2011 | PN AZRINA BINTI TAHIR 14

© 2011 | PN AZRINA BINTI TAHIR 15 Additional criteria for recognizing objects: Relevance to the problem domain Does the object exist within the boundaries of the problem domain? Is the object required for the solution to be complete? Is the object required as part of an interaction between a user and the solution? Independent existence For an item to be an object and not an attribute of another object, it must exist independently in the context of problem domain. Possible objects in the DirectClothing case study as follow:

Attributes are data: ▫ Order ID ▫ Customer ID  Operations are action:  Delete Item  Change ID © 2011 | PN AZRINA BINTI TAHIR 16 Order object

Object with another object as an attribute © 2011 | PN AZRINA BINTI TAHIR 17

Possible attributes and operations for objects in the DirectClothing, Inc. case study © 2011 | PN AZRINA BINTI TAHIR 18

© 2011 | PN AZRINA BINTI TAHIR 19

© 2011 | PN AZRINA BINTI TAHIR 20 To design a class you need to identify: ▫ Object (class name) ▫ Attributes (variables name) ▫ Operations (methods name) Syntax: ClassName attributeVariableName [range of values] … methodName() …

Example: © 2011 | PN AZRINA BINTI TAHIR 21 Shirt shirtID Price Description Size colorCode R=Red, B=Blue, G=Green calculateShirtID() displayInformation()