Week 13: Wrap-up Refining Class Diagram and Implementation

Slides:



Advertisements
Similar presentations
L3:CSC © Dr. Basheer M. Nasef Lecture #3 By Dr. Basheer M. Nasef.
Advertisements

1 Chapter 8 Objects and Classes Lecture 2 Prepared by Muhanad Alkhalisy.
Slides 4/22 COP Topics Final Exam Review Final Exam The final exam is Friday, April 29 th at 10:00 AM in the usual room No notes, books, calculators,
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
Together and UML Greg Johnson CSE 230 – Software Engineering Spring 2007.
Copyright W. Howden1 Lecture 7: Functional and OO Design Descriptions.
1 Software Testing and Quality Assurance Lecture 12 - The Testing Perspective (Chapter 2, A Practical Guide to Testing Object-Oriented Software)
Object-Oriented PHP (1)
UML – Class Diagrams.
Chapter 6 Graphical User Interface (GUI) and Object-Oriented Design (OOD)
1 Inheritance Reserved word protected Reserved word super Overriding methods Class Hierarchies Reading for this lecture: L&L 8.1 – 8.5.
Basic OOP Concepts and Terms
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
Aalborg Media Lab 23-Jun-15 Inheritance Lecture 10 Chapter 8.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter N - 1 Chapter 13 Polymorphism is-a relationships Interfaces.
The Unified Modeling Language (UML) Class Diagrams.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 12 Object-Oriented Design.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 12 Object-Oriented.
Chapter 11 Inheritance and Composition. Chapter Objectives Learn about inheritance Learn about subclasses and superclasses Explore how to override the.
Java Programming: From Problem Analysis to Program Design, Second Edition1  Learn about basic GUI components.  Explore how the GUI components JFrame,
Object-Oriented Modeling Chapter 10 CSCI CSCI 1302 – Object-Oriented Modeling2 Outline The Software Development Process Discovering Relationships.
Inheritance Building one object from another. Background Object-oriented programming is normally described has offering three capabilities Encapsulation:
Chapter 8 - Additional Inheritance Concepts and Techniques1 Chapter 8 Additional Inheritance Concepts and Techniques.
UML Class Diagram Trisha Cummings. What we will be covering What is a Class Diagram? Essential Elements of a UML Class Diagram UML Packages Logical Distribution.
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.
 All calls to method toString and earnings are resolved at execution time, based on the type of the object to which currentEmployee refers.  Known as.
Chapter 13 ATM Case Study Part 2: Implementing an Object-Oriented Design Java How to Program, 8/e (C) 2010 Pearson Education, Inc. All rights reserved.
ITEC324 Principle of CS III Chapter 2 (Horstmann’s Book) – Part 1 The Object-Oriented Design Process Hwajung Lee.
Chapter 8 Specialization aka Inheritance. 2 Inheritance  Review of class relationships  Uses – One class uses the services of another class, either.
Class diagrams Terézia Mézešová.
Object Oriented Programming in Java Habib Rostami Lecture 10.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
UML Fundamental Elements. Structural Elements Represent abstractions in our system. Elements that encapsulate the system's set of behaviors. Structural.
BTS430 Systems Analysis and Design using UML Design Class Diagrams (ref=chapter 16 of Applying UML and Patterns)
Notices Assn 2 is due tomorrow, 7pm. Moodle quiz next week – written in the lab as before. Everything up to and including today’s lecture: Big Topics are.
Software Modelling Class Diagram. Class Diagrams The main building block in object oriented modeling They are used both for general conceptual modeling.
Java Programming: Guided Learning with Early Objects Chapter 9 Inheritance and Polymorphism.
© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Appendix A: UML Java Software Structures: Designing and Using Data.
Introduction to Object-oriented Programming
Chapter 7 Objects and Classes
CS 325: Software Engineering
Unified Modeling Language
Object-Oriented Analysis and Design
Chapter 16 UML Class Diagrams.
Unified Modeling Language—UML A Very Brief Introduction
Systems Analysis and Design With UML 2
Chapter 11 Object-Oriented Design
Design Class Diagrams
Week 4 Object-Oriented Programming (1): Inheritance
An Introduction to Inheritance
Chapter 13 ATM Case Study Part 2: Implementing an Object-Oriented Design Java How to Program, 8/e (C) 2010 Pearson Education, Inc. All rights reserved.
Creating and Using Classes
CS240: Advanced Programming Concepts
Inheritance, Polymorphism, and Interfaces
MSIS 670 Object-Oriented Software Engineering
CS 200 More Classes Jim Williams, PhD.
Inheritance, Polymorphism, and Interfaces. Oh My
UML Class Diagram.
Week 3 Object-based Programming: Classes and Objects
Advanced Java Programming
Week 4 Object-based Programming (2) Classes and Objects: A Deeper Look
Analysis models and design models
Basic OOP Concepts and Terms
CIS 375 Bruce R. Maxim UM-Dearborn
Object Oriented System Design Class Diagrams
Week 15: Refining Class Diagram and Implementation
ITEC324 Principle of CS III
ITEC324 Principle of CS III
Chapter 7 Objects and Classes
Introduction to Computer Science and Object-Oriented Programming
Presentation transcript:

Week 13: Wrap-up Refining Class Diagram and Implementation MSIS 670: UML Models Week 13: Wrap-up Refining Class Diagram and Implementation 11/16/2018

Refining the Class Diagram From Activity Diagram and Sequence diagram, add the classes needed. Identify more attributes (instance variables) and methods needed. Modify relationships: e.g., an application class uses a data type, “has a” GUI, etc. Visibility: instance variables = private or protected, methods = public or private A tip for using class diagrams (from analysis to implementation): Don't try to use all the various notations on offer. Start with the simple stuff: classes, associations, attributes, and generalization. Introduce other notations only when you need them. Sort out which perspective you are drawing the models from. If you are in analysis draw conceptual models. When working with software, concentrate on specification models. Draw implementation models only when you are illustrating a particular implementation technique. Don't draw models for everything, concentrate on the key areas. It is better to have a few diagrams that you use and keep up to date than many forgotten, out-of-date models. 11/16/2018

Creating Random Access Files “WriteAccessFile”, “ReadAccessFile”, “UpdateRecord”, and “CreateAccessFile” are applications which extends JFrame interface. Applictaion has a user interface (GUI) of BankUI as a component, which in turn has Button and Field as its own componnets. The application interacts with RandomAccessAccountRecord, which extends AccountRecord (SequentialFile), and thus inherits from it its attributes and methods. Figure 1 11/16/2018

Implementation a Skelton Java code for classes will be created. 11/16/2018

A Skeleton Code Declare public class ClassName Attributes be its instance variables Class diagram relationships for object references Declare methods from third compartment 11/16/2018

Step 2: define instance variables Step 1: declare class Step 2: define instance variables Step 3: reference to objects Step 4: define methods Just to illustrate the steps to create a class code, Figure 2 illustrates a sample skeleton code for an application “TransactionProcessor”. Of course this is not complete nor compilable. Figure 2: Example of application skeleton code 11/16/2018

Figure 3: Example of GUI skeleton code 11/16/2018

Figure 4: Example of file skeleton code 11/16/2018