Design PatternsReview. CSE 110 Discussion - Week10

Size: px
Start display at page:

Download "Design PatternsReview. CSE 110 Discussion - Week10"

Transcription

1 Design PatternsReview CSE 110 Discussion - Week10

2 Question 1 (Take 5 mins.) We have a weather data object which contains information about current temperature, humidity and pressure of the environment. We have a display that wants to display this information. Note that the display would be updated whenever there is a change in one of these measurements. What design pattern you would use to propagate this information and why. Things to consider What if there are multiple displays? How would those get updated in real time without polling weather data class to know about any changes?

3 Question 1 (Cont.)

4 Answer 1: Observer Pattern

5

6

7 Question 2(Take 5 mins.) You have a window interface object with a draw and get description method. But, now you realize that you want some more dynamic behaviors for this window, that is you want to build a window with a horizontal scrollbar and a vertical scrollbar. What design principle would you use and how? Here s your window interface Public interface Window { public void draw(); Draws the window public String getdescription(); // Returns a description of the window

8 Question 2(Cont.) Here s some sample code Public interface Window { public void draw(); Draws the window public String getdescription(); // Returns a description of the window class SimpleWindow implements Window { public void draw() { // Draw window public String getdescription() { return "simple window";

9 Answer 2: Decorator Pattern

10 // abstract decorator class - note that it implements Window abstract class WindowDecorator implements Window { protected Window windowtobedecorated; // the Window being decorated public WindowDecorator (Window windowtobedecorated) { this.windowtobedecorated = windowtobedecorated; public void draw() { windowtobedecorated.draw(); //Delegation public String getdescription() { return windowtobedecorated.getdescription(); //Delegation

11 // The second concrete decorator which adds horizontal scrollbar functionality class HorizontalScrollBarDecorator extends WindowDecorator { public HorizontalScrollBarDecorator (Window windowtobedecorated) { public void draw() { super.draw(); drawhorizontalscrollbar(); private void drawhorizontalscrollbar() { // Draw the horizontal public String getdescription() { return super.getdescription() + ", including horizontal scrollbars";

12 Question 3 (Take 5 minutes) We have a shopping cart class which contains a bunch of items. Now, you want to pay for these items. You can pay using credit card, paypal, google wallet etc. What design principle you would use to handle the payments through these various payment methodologies and how?

13 Here s how your shopping cart looks like - public class ShoppingCart { List<Item> items=new ArrayList<Item>(); public void additem(item item){ this.items.add(item); public int calculatetotal(){ int sum = 0; for(item item : items){ sum += item.getprice(); return sum; // You have to add a pay method here.

14 Answer 3: Strategy Pattern

15 Question 4 (Take 5 minutes) We have an Audio Player that is capable of playing only mp3 files. Now we want this audio player to extend itself to use another Advanced Audio Player that is capable of playing vlc and mp4 files. What design pattern would you use to implement this scenario? Can you draw a UML diagram to depict the implementation?

16 Answer 4: Adapter Pattern We would create an adapter class MediaAdapter which would implement the MediaPlayerinterface and use AdvancedMediaPlayer objects to play the required format. AudioPlayer will use the adapter class MediaAdapter passing it the desired audio type without knowing the actual class which can play the desired format.adapterpatterndemo, our demo class will use AudioPlayer class to play various formats.

17 Answer 4 (cont)

18 Question 5 (Take 5 minutes) We need to create 3 types of cars: Small, Luxury and Sedans. A car can lie in any one of the above 3 categories. Building a car requires many steps from allocating accessories to final makeup. Depending on the user s request we need to create a type of car. What design pattern would you use to implement this scenario? Can you draw a UML diagram to depict the implementation?

19 Answer 5 : Factory Pattern

Design Patterns B. Reid Holmes. Material and some slide content from: - Head First Design Patterns Book - GoF Design Patterns Book

Design Patterns B. Reid Holmes. Material and some slide content from: - Head First Design Patterns Book - GoF Design Patterns Book Material and some slide content from: - Head First Design Patterns Book - GoF Design Patterns Book Design Patterns B Reid Holmes Lecture 15 - Thursday November 10 2011. GoF design patterns $ %!!!! $ "!

More information

Design Patterns Reid Holmes

Design Patterns Reid Holmes Material and some slide content from: - Head First Design Patterns Book - GoF Design Patterns Book Design Patterns Reid Holmes GoF design patterns $ %!!!! $ "! # & Pattern vocabulary Shared vocabulary

More information

Lecture 14: Design Patterns

Lecture 14: Design Patterns 2. Structural Patterns 2.2. Decorator Pattern Lecture 14: Design Patterns In object-oriented programming, the decorator pattern is a design pattern that allows behaviour to be added to an existing object

More information

Structural Design Patterns. CSE260, Computer Science B: Honors Stony Brook University

Structural Design Patterns. CSE260, Computer Science B: Honors Stony Brook University Structural Design Patterns CSE260, Computer Science B: Honors Stony Brook University http://www.cs.stonybrook.edu/~cse260 Structural Design Patterns Design patterns that ease the design by identifying

More information

DESIGN PATTERNS. Dominik Škoda CHARLES UNIVERSITY Faculty of Mathematics and Physics

DESIGN PATTERNS. Dominik Škoda   CHARLES UNIVERSITY Faculty of Mathematics and Physics DESIGN PATTERNS http://d3s.mff.cuni.cz Dominik Škoda CHARLES UNIVERSITY Faculty of Mathematics and Physics Design Patterns Standard solution of common problems It is not complete

More information

Software Engineering and Design. Master 2 Pôles Universitaires Français Marie Beurton-Aimar Université de Bordeaux

Software Engineering and Design. Master 2 Pôles Universitaires Français Marie Beurton-Aimar Université de Bordeaux Software Engineering and Design Master 2 Pôles Universitaires Français Marie Beurton-Aimar Université de Bordeaux Design Patterns: The Tale An architect : Christopher Alexander 1 has developed the idea

More information

Design Patterns. Dr. Rania Khairy. Software Engineering and Development Tool

Design Patterns. Dr. Rania Khairy. Software Engineering and Development Tool Design Patterns What are Design Patterns? What are Design Patterns? Why Patterns? Canonical Cataloging Other Design Patterns Books: Freeman, Eric and Elisabeth Freeman with Kathy Sierra and Bert Bates.

More information

Design Pattern Examples

Design Pattern Examples Factory Pattern (Creational) Design Pattern Examples Goal: Define an interface for creating an object, but let the classes that implement the interface decide which class to instantiate. The Factory method

More information

Design Patterns Cont. CSE 110 Discussion - Week 9

Design Patterns Cont. CSE 110 Discussion - Week 9 Design Patterns Cont. CSE 110 Discussion - Week 9 Factory Method - Decouple object creation from implementation details - Allows you to use an object ( product ) without knowing about creation - Often

More information

Design Patterns. CSE 110 Discussion - Week8

Design Patterns. CSE 110 Discussion - Week8 Design Patterns CSE 110 Discussion - Week8 Decorator Pattern Problem You want to add behavior or state to individual objects at run-time. Inheritance is not feasible because it is static and applies to

More information

Test Isolation and Mocking

Test Isolation and Mocking Test Isolation and Mocking Technion Institute of Technology 236700 1 Author: Assaf Israel Unit Testing: Isolation The bigger the test subject the harder it is to understand the reason of a bug from a test

More information

Software Engineering and Design. Master 2 Pôles Universitaires Français. Marie Beurton-Aimar Université de Bordeaux

Software Engineering and Design. Master 2 Pôles Universitaires Français. Marie Beurton-Aimar Université de Bordeaux Software Engineering and Design Master 2 Pôles Universitaires Français Marie Beurton-Aimar Université de Bordeaux Design Patterns: The Tale An architect : Christopher Alexander 1 has developed the idea

More information

EINDHOVEN UNIVERSITY OF TECHNOLOGY

EINDHOVEN UNIVERSITY OF TECHNOLOGY EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics & Computer Science Exam Programming Methods, 2IP15, Wednesday 17 April 2013, 09:00 12:00 TU/e THIS IS THE EXAMINER S COPY WITH (POSSIBLY INCOMPLETE)

More information

Laboratorio di Tecnologie dell'informazione

Laboratorio di Tecnologie dell'informazione Laboratorio di Tecnologie dell'informazione Ing. Marco Bertini marco.bertini@unifi.it http://www.micc.unifi.it/bertini/ Design pattern Observer Some motivations In many programs, when a object changes

More information

Aggregation. Introduction to Computer Science I. Overview (1): Overview (2): CSE 1020 Summer Bill Kapralos. Bill Kapralos.

Aggregation. Introduction to Computer Science I. Overview (1): Overview (2): CSE 1020 Summer Bill Kapralos. Bill Kapralos. Aggregation Thursday, July 6 2006 CSE 1020, Summer 2006, Overview (1): Before We Begin Some administrative details Some questions to consider Aggregation Overview / Introduction The aggregate s constructor

More information

SOFTWARE PATTERNS. Joseph Bonello

SOFTWARE PATTERNS. Joseph Bonello SOFTWARE PATTERNS Joseph Bonello MOTIVATION Building software using new frameworks is more complex And expensive There are many methodologies and frameworks to help developers build enterprise application

More information

CS250 Intro to CS II. Spring CS250 - Intro to CS II 1

CS250 Intro to CS II. Spring CS250 - Intro to CS II 1 CS250 Intro to CS II Spring 2017 CS250 - Intro to CS II 1 Topics Virtual Functions Pure Virtual Functions Abstract Classes Concrete Classes Binding Time, Static Binding, Dynamic Binding Overriding vs Redefining

More information

Quick Reference Guide. How to Register

Quick Reference Guide. How to Register Quick Reference Guide How to Register 1 Click the Register Now link. 2 Step 1: Choose your course Click the course or program you would like to register in. 3 Explore your section options by clicking the

More information

Show Manager. How To Enter

Show Manager. How To Enter Show Manager How To Enter help@showmanager.com.au Table of Contents 2 1. Introduction 3 2. Select an Event 4 3. View Event Details 5 4. Create Entries 6 5. Review Entries 9 6. Shopping Cart 10 7. Check

More information

Uber How-To Guide. What is Uber? How to Download Uber. How to Create Your Uber Account

Uber How-To Guide. What is Uber? How to Download Uber. How to Create Your Uber Account Uber How-To Guide What is Uber? Uber is a car service in which you can request private drivers to pick you up from your current location and drop you off at your desired location. This service is conducted

More information

CS 520/620 Advanced Software Engineering Fall September 27, 2016

CS 520/620 Advanced Software Engineering Fall September 27, 2016 CS 520/620 Advanced Software Engineering Fall 2016 September 27, 2016 Recap Behavioral patterns Strategy pattern Observer Iterator MVC revisited Design patterns commonly used in an MVC architecture Recap:

More information

Quiz 1 (October 25, 2017)

Quiz 1 (October 25, 2017) MIT 6.031: Software Construction Prof. Rob Miller & Max Goldman revised Tuesday 24 th October, 2017, 15:03 Quiz 1 (October 25, 2017) Your name: Your Kerberos username: You have 50 minutes to complete this

More information

2335 Buttermilk Crossing, Suite 300, Crescent Springs, KY Phone: (859) Fax: (866)

2335 Buttermilk Crossing, Suite 300, Crescent Springs, KY Phone: (859) Fax: (866) Customer Bill-Payment Portal If using the Customer On-Line Self-Service Portal and have set up NetLink to accept credit card payments (via PC Charge or Element) then this tab becomes a bill payment portal:

More information

Control Structures of C++ Programming (2)

Control Structures of C++ Programming (2) Control Structures of C++ Programming (2) CISC1600/1610 Computer Science I/Lab Fall 2016 CISC 1600 Yanjun Li 1 Loops Purpose: Execute a block of code multiple times (repeat) Types: for, while, do/while

More information

CSE 142 Wi03 Midterm 2 Sample Solution All Versions Page 1 of 6

CSE 142 Wi03 Midterm 2 Sample Solution All Versions Page 1 of 6 CSE 142 Wi03 Midterm 2 Sample Solution All Versions Page 1 of 6 Question 1. (5 points) One of your colleagues is having a terrible time with the following code, which doesn t work properly. /** A simple

More information

EasyDiag User s Manual. Issued:

EasyDiag User s Manual. Issued: Issued:2013-11-11 Precautions on operating vehicle s ECU Do not disconnect the vehicle inner consume when the ignition switch is on, so as to avoid the sensors or the ECU damage. Do not place the magnetic

More information

XeloQ Communications - Reseller Application Demo (sample screens)

XeloQ Communications - Reseller Application Demo (sample screens) XeloQ Communications - Reseller Application Demo (sample screens) Resellers that sign up at XeloQ Communications will get an exact similar system as shown below as well as a USER login domain / screen

More information

INF 111 / CSE 121. Laboratory 6: Package and Sequence Diagrams using ArgoUML

INF 111 / CSE 121. Laboratory 6: Package and Sequence Diagrams using ArgoUML Laboratory 6: Package and Sequence Diagrams using ArgoUML Name : Student Number : Laboratory Time : Objectives Add Packages to a Class Diagram in ArgoUML Create a Sequence Diagram in ArgoUML Create a new

More information

JDL Rock Pty Ltd trading as Hair4Now Ordering Products Online ~ Customer Guide ~

JDL Rock Pty Ltd trading as Hair4Now Ordering Products Online ~ Customer Guide ~ JDL Rock Pty Ltd trading as Hair4Now Ordering Products Online ~ Customer Guide ~ 1. A customer account is required to purchase products online with Hair4Now. To establish a customer account click on Register

More information

How to Search and Register for Continuing Education Programs

How to Search and Register for Continuing Education Programs How to Search and Register for Continuing Education Programs 1. Search for a course and/or create an account: Search for portion of title Drop down menu: - Browse Our Programs (view by title) - Events

More information

S T R U C T U R A L M O D E L I N G ( M O D E L I N G A S Y S T E M ' S L O G I C A L S T R U C T U R E U S I N G C L A S S E S A N D C L A S S D I A

S T R U C T U R A L M O D E L I N G ( M O D E L I N G A S Y S T E M ' S L O G I C A L S T R U C T U R E U S I N G C L A S S E S A N D C L A S S D I A S T R U C T U R A L M O D E L I N G ( M O D E L I N G A S Y S T E M ' S L O G I C A L S T R U C T U R E U S I N G C L A S S E S A N D C L A S S D I A G R A M S ) WHAT IS CLASS DIAGRAM? A class diagram

More information

Student WebAdvisor Training Manual

Student WebAdvisor Training Manual Student WebAdvisor Training Manual Contents Logging into WebAdvisor..2 Registering for a Class Section..4 Paying on My Account. 9 Dropping a Class Section 12 1 Logging into WebAdvisor STEPS 1. Click the

More information

FAQs. Frequently Asked Questions

FAQs. Frequently Asked Questions FAQs Frequently Asked Questions 1 1. How do I order a new phone? 2. How do I upgrade my existing phone? 3. How do I order a SIM card? 4. How do I order an accessory? 5. How do I check the status of my

More information

Visual Guide for Ordering Seed Online

Visual Guide for Ordering Seed Online 1) Login to the website if you are not already logged in. Visual Guide for Ordering Seed Online 2) Click on Order Seed link under SEEDS menu. You will only see the link if you are logged in. It will take

More information

Principles of Software Construction: Objects, Design, and Concurrency. Part 1: Design for reuse. Design patterns for reuse

Principles of Software Construction: Objects, Design, and Concurrency. Part 1: Design for reuse. Design patterns for reuse Principles of Software Construction: Objects, Design, and Concurrency Part 1: Design for reuse Design patterns for reuse Charlie Garrod Bogdan Vasilescu School of Computer Science 1 Administrivia Homework

More information

Powermite 599 MT Series SAS Electronic Valve Actuator 24 Vac or 24 Vdc, Proportional Control

Powermite 599 MT Series SAS Electronic Valve Actuator 24 Vac or 24 Vdc, Proportional Control Powermite 599 MT Series SAS Electronic Valve Actuator 24 Vac or 24 Vdc, Proportional Control Description Features Application The Powermite 599 MT Series SAS Electronic Valve Actuator requires a 24 Vac

More information

Decorator. The Decorator pattern gives a mechanism without using inheritance.

Decorator. The Decorator pattern gives a mechanism without using inheritance. Sometimes we need a way to add responsibilities to an object dynamically and transparently. The Decorator pattern gives a mechanism without using inheritance. The Decorator pattern allows one to add and

More information

Registration Instructions

Registration Instructions Registration Instructions and Information Log-in Click on Use WebAdvisor Now! to log in. Important: Once you are logged in you have five minutes to make your transaction. This five minute time limit is

More information

Best Practices Guide for Payments. Android August 2018

Best Practices Guide for Payments. Android August 2018 Best Practices Guide for Payments Android August 2018 Contents 3 Overview 4-5 Google Pay Payment Button: Do s & Don ts 5 Examples 6-7 Google Pay Logo & Mark: Do s & Don ts 7 Examples 8-9 Using Google Pay

More information

VEL TECH HIGH TECH Dr. RANGARAJAN Dr. SAKUNTHALA ENGINEERING COLLEGE UNIT 1 UML DIAGRAMS

VEL TECH HIGH TECH Dr. RANGARAJAN Dr. SAKUNTHALA ENGINEERING COLLEGE UNIT 1 UML DIAGRAMS UNIT 1 UML DIAGRAMS Introduction to OOAD Unified Process - UML diagrams Use Case Class Diagrams Interaction Diagrams State Diagrams Activity Diagrams Package, component and Deployment Diagrams. INTRODUCTION

More information

Isabell Florist Shopping Guide at Isabell Florist

Isabell Florist Shopping Guide at   Isabell Florist Isabell Florist (PG 0220580-A) http://www.isabellflorist.com HP: +6012-4451399 Fax: +604-5089913 Step by Step Order Online 1) First, when you are at our Website at www.isabellflorist.com, there are some

More information

Chapter 10. Object-Oriented Analysis and Modeling Using the UML. McGraw-Hill/Irwin

Chapter 10. Object-Oriented Analysis and Modeling Using the UML. McGraw-Hill/Irwin Chapter 10 Object-Oriented Analysis and Modeling Using the UML McGraw-Hill/Irwin Copyright 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Objectives 10-2 Define object modeling and explain

More information

E-wallet - Magento 2 USER MANUAL MAGEDELIGHT.COM

E-wallet - Magento 2 USER MANUAL MAGEDELIGHT.COM E-wallet - Magento 2 USER MANUAL MAGEDELIGHT.COM EMAIL: SUPPORT@MAGEDELIGHT.COM Introduction: E-wallet extension is to allow customers do shopping using online wallet credited with some amount. It works

More information

CS 2340 Objects and Design

CS 2340 Objects and Design CS 2340 Objects and Design Structural Patterns Christopher Simpkins chris.simpkins@gatech.edu Chris Simpkins (Georgia Tech) CS 2340 Objects and Design Structural Patterns 1 / 10 Structural Design Patterns

More information

MD Helicopters, Inc. On-line Publications Ordering Applications Guide

MD Helicopters, Inc. On-line Publications Ordering Applications Guide MD Helicopters, Inc. On-line Publications Ordering Applications Guide Welcome. This guide is provided to assist you in placing orders for Technical Publications using the new On-line Publications Order

More information

Composite Pattern - Shapes Example - Java Sourcecode

Composite Pattern - Shapes Example - Java Sourcecode Composite Pattern - Shapes Example - Java Sourcecode In graphics editors a shape can be basic or complex. An example of a simple shape is a line, where a complex shape is a rectangle which is made of four

More information

Solutions to Quiz 1 (October 25, 2017)

Solutions to Quiz 1 (October 25, 2017) MIT 6.031: Software Construction Prof. Rob Miller & Max Goldman revised Wednesday 25 th October, 2017, 22:33 Solutions to Quiz 1 (October 25, 2017) For this quiz, a shopping list is an ordered list of

More information

The Workwear Group Online Ordering Manual. Ramsay Health Care

The Workwear Group Online Ordering Manual. Ramsay Health Care The Workwear Group Online Ordering Manual Ramsay Health Care Welcome to The Workwear Group online at http://www.pbworkwearonline.com.au This site provides you with everything you need to manage your uniform

More information

WordPress for Business Class 8 (ecommerce & Membership)

WordPress for Business Class 8 (ecommerce & Membership) WordPress for Business Class 8 (ecommerce & Membership) Slides: http://wpacademy.tv/w5-8.pdf Class 8 - Agenda Coaching groups extension (reminder) WP Encyclopedia project (May 2013) Newsletter, auto-responder

More information

Website or Web Page for your Book(s) Fred Benson

Website or Web Page for your Book(s) Fred Benson Website or Web Page for your Book(s) Fred Benson What is the difference between Web Page and Website? Web Page is a page on a separate site that we created. We have unlimited pages on the separate site.

More information

LABORATORY 1 REVISION

LABORATORY 1 REVISION UTCN Computer Science Department Software Design 2012/2013 LABORATORY 1 REVISION ================================================================== I. UML Revision This section focuses on reviewing the

More information

CSE 142 Wi04 Midterm 2 Sample Solution Page 1 of 8

CSE 142 Wi04 Midterm 2 Sample Solution Page 1 of 8 CSE 142 Wi04 Midterm 2 Sample Solution Page 1 of 8 Question 1. (6 points) Complete the definition of method printtriangle(n) below so that when it is executed it will print on System.out an upside down

More information

CSE 373 Spring 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

CSE 373 Spring 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Name: Email address: CSE 373 Spring 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Instructions: Read the directions for each question carefully before answering. We may give partial

More information

How to buy the ticket online

How to buy the ticket online How to buy the ticket online 1. Purchase 2. Purchase without registration 3. Payment options 4. Purchase summary e-mail 5. What to do if the transaction is not permitted or is refused 6. Online invoice

More information

C++ Inheritance and Encapsulation

C++ Inheritance and Encapsulation C++ Inheritance and Encapsulation Private and Protected members Inheritance Type Public Inheritance Private Inheritance Protected Inheritance Special method inheritance 1 Private Members Private members

More information

CS 170 Java Programming 1. Week 15: Interfaces and Exceptions

CS 170 Java Programming 1. Week 15: Interfaces and Exceptions CS 170 Java Programming 1 Week 15: Interfaces and Exceptions Your "IC" or "Lab" Document Use Word or OpenOffice to create a new document Save the file as IC15.doc (Office 97-2003 compatible) Place on your

More information

CSE 373 Winter 2009: Midterm #1 (closed book, closed notes, NO calculators allowed)

CSE 373 Winter 2009: Midterm #1 (closed book, closed notes, NO calculators allowed) Name: Email address: CSE 373 Winter 2009: Midterm #1 (closed book, closed notes, NO calculators allowed) Instructions: Read the directions for each question carefully before answering. We may give partial

More information

CSE 70 Final Exam Fall 2009

CSE 70 Final Exam Fall 2009 Signature cs70f Name Student ID CSE 70 Final Exam Fall 2009 Page 1 (10 points) Page 2 (16 points) Page 3 (22 points) Page 4 (13 points) Page 5 (15 points) Page 6 (20 points) Page 7 (9 points) Page 8 (15

More information

2008 Winton. Modeling Resources

2008 Winton. Modeling Resources 1 Modeling Resources 2 Model Entities System entities may utilize a "pool" of resources Examples The tables in a cafeteria Shopping carts in a store Rental cars Representing a pool of resources Use a number

More information

Portal > Knowledgebase > I am a Supplier/Decorator > ESP Websites > Website Settings

Portal > Knowledgebase > I am a Supplier/Decorator > ESP Websites > Website Settings Portal > Knowledgebase > I am a Supplier/Decorator > ESP Websites > Website Settings Website Settings Tamika C - 2017-02-07 - in ESP Websites Website Settings The Website Settings section enables you to

More information

Show Manager. How To Enter Grouped Events

Show Manager. How To Enter Grouped Events Show Manager How To Enter Grouped Events help@showmanager.com.au Table of Contents 2 1. Introduction 3 2. Select an Event 4 3. View Event Details 5 4. Select Events To Enter 6 5. Event Group List 7 6.

More information

CS246 Software Abstraction and Specification Final Examination

CS246 Software Abstraction and Specification Final Examination CS246 Software Abstraction and Specification ination Spring 2007 Date: 04-Aug-2007 Time: 4.00 6.30pm Permitted Aids: None 14 pages Student Name: UW Student ID: Instructions: (Read carefully before the

More information

Implementing an ADT with a Class

Implementing an ADT with a Class Implementing an ADT with a Class the header file contains the class definition the source code file normally contains the class s method definitions when using Visual C++ 2012, the source code and the

More information

SCYR Individual Registration

SCYR Individual Registration SCYR Individual Registration For Parents/Guardians and Club Administrators 2014-2015 Table of Contents INTRODUCTION 3 ACCOUNT SETUP 3 LOGIN TYPE 3 FIRST TIME USER 4 LOGON AFTER CREATING ACCOUNT 5 PASSWORD

More information

Programming Languages and Techniques (CIS120)

Programming Languages and Techniques (CIS120) Programming Languages and Techniques (CIS120) Lecture 24 March 18, 2016 The Java ASM What is the value of ans at the end of this program? Counter[] a = { new Counter(), new Counter() ; Counter[] b = {

More information

TSSA PORTAL TRAINING GUIDE

TSSA PORTAL TRAINING GUIDE TSSA PORTAL TRAINING GUIDE Owner Processes Page 0 Table of Contents Contents 1.1 Redeem Invitation... 2 1.2 Reset Password... 5 1.3 Manage Profile... 7 2.1 View Your Record(s) of Inspection... 8 2.2 Validate

More information

EL-USB-RT API Guide V1.0

EL-USB-RT API Guide V1.0 EL-USB-RT API Guide V1.0 Contents 1 Introduction 2 C++ Sample Dialog Application 3 C++ Sample Observer Pattern Application 4 C# Sample Application 4.1 Capturing USB Device Connect \ Disconnect Events 5

More information

Object- Oriented Design with UML and Java Part I: Fundamentals

Object- Oriented Design with UML and Java Part I: Fundamentals Object- Oriented Design with UML and Java Part I: Fundamentals University of Colorado 1999-2002 CSCI-4448 - Object-Oriented Programming and Design These notes as free PDF files: http://www.softwarefederation.com/cs4448.html

More information

1. A Remote Proxy helps to hide all the low-level details of exception handling from the proxy Client.

1. A Remote Proxy helps to hide all the low-level details of exception handling from the proxy Client. UML diagrams for the design patterns mentioned in the exam are provided at the end of the exam. For some questions the details of the diagram structure will be useful. For other questions, the details

More information

WORKSHOP. Writing User Stories

WORKSHOP. Writing User Stories WORKSHOP Writing User Stories contents SECTION 1 user stories what is a user story? 4 user story template 5 examples: user stories 6 user story checklist 7 why not tasks? 8 SECTION 2 writing acceptance

More information

Electronic Ordering Instructions with Credit Card Option. For Hilton Hotels Punch Out

Electronic Ordering Instructions with Credit Card Option. For Hilton Hotels Punch Out Electronic Ordering Instructions with Credit Card Option For Hilton Hotels Punch Out July 2005 Table of Contents Home Page... 3 Finding Products... 4 Browse Catalog... 4 Search Catalog... 7 Add To Cart...

More information

Object Oriented Design. - Defines an instance for creating an object but letting subclasses decide which class to instantiate

Object Oriented Design. - Defines an instance for creating an object but letting subclasses decide which class to instantiate Intent - Defines an instance for creating an object but letting subclasses decide which class to instantiate - Refers to the newly created object through a common interface Implementation The Builder design

More information

ControlByWeb X-320 Driver. Installation and Usage Guide. Revision: 3.0 Date: Monday, July 10, 2017 Authors: Alan Chow

ControlByWeb X-320 Driver. Installation and Usage Guide. Revision: 3.0 Date: Monday, July 10, 2017 Authors: Alan Chow ControlByWeb X-320 Driver Installation and Usage Guide Revision: 3.0 Date: Monday, July 10, 2017 Authors: Alan Chow Contents Overview... 2 Features... 3 Important Notice... 4 Driver Installation... 4 Adding

More information

ACS-3913 Ron McFadyen 1. UML Notation for Class diagrams Object diagrams

ACS-3913 Ron McFadyen 1. UML Notation for Class diagrams Object diagrams ACS-3913 Ron McFadyen 1 UML Notation for Class diagrams Object diagrams Class Diagram ACS-3913 Ron McFadyen 2 A class diagram begins as a conceptual or analysis class model and evolves to a design class

More information

Fundamental Concepts

Fundamental Concepts Object Oriented Testing For System Testers Chapter 2 Fundamental Concepts 2-1 Chapter Objectives At the end of this chapter you will be able to define and use the following concepts: - Object - Class -

More information

Inheritance. A key OOP concept

Inheritance. A key OOP concept Inheritance A key OOP concept Setting the scene Why do we need inheritance? Inheritance enables you to define a new class based upon an existing class. The new class is similar to the existing class, but

More information

1. Use the website navigation at the top of the page (eg. Power Booty, Classes, Shop) to locate items you are looking for.

1. Use the website navigation at the top of the page (eg. Power Booty, Classes, Shop) to locate items you are looking for. FAQ FREQUENTLY ASKED QUESTIONS HOW TO ORDER 1. Use the website navigation at the top of the page (eg. Power Booty, Classes, Shop) to locate items you are looking for. 2. Once you find an item click the

More information

Online Ordering Instructions

Online Ordering Instructions Online Ordering Instructions Supplied By Table of Contents Login... 2 How to Order Products... 2 Shopping Cart... 3 Checkout... 3 My Account... 7 Login Type www.alliancepromotions.com.au in your preferred

More information

Campus Online User Guide

Campus Online User Guide Campus Online User Guide Content Page 1) How to access Campus Online 3 2) How to view account balance 5 3) How to set email notification to parents 7 4) How to set low balance notification limit 9 5) How

More information

How to order uniforms through Corporate Recognition

How to order uniforms through Corporate Recognition How to order uniforms through Corporate Recognition Store Links: The link for the Viafield Online Store is the following: www.corporaterecognition.com/stores/viafielduniformstore Signing in: ---You will

More information

SET UP 2. Unboxing 2. Attaching clip 2. Attaching pendant 2. Pairing with the app 2. Available functionality 3. Function Elements 3

SET UP 2. Unboxing 2. Attaching clip 2. Attaching pendant 2. Pairing with the app 2. Available functionality 3. Function Elements 3 SENSTONE MANUAL SET UP 2 Unboxing 2 Attaching clip 2 Attaching pendant 2 Pairing with the app 2 USING SENSTONE 3 Available functionality 3 Function Elements 3 Technical characteristics 3 Taking a note

More information

Advanced Object Oriented PHP

Advanced Object Oriented PHP CNM STEMulus Center Web Development with PHP November 11, 2015 1/17 Outline 1 2 Diamond Problem Composing vs Inheriting Case Study: Strategy Design Pattern 2/17 Definition is when a class is based on another

More information

CMSC 202. Pointers Dynamic Memory Allocation

CMSC 202. Pointers Dynamic Memory Allocation CMSC 202 Pointers Dynamic Memory Allocation 1 A simple variable A variable is drawn as a labeled box int x; X : 2 Complex Variables A complex variable is drawn as complex boxes (horizontal for array, vertical

More information

Design Patterns Reid Holmes

Design Patterns Reid Holmes Material and some slide content from: - Head First Design Patterns Book - GoF Design Patterns Book Design Patterns Reid Holmes GoF design patterns $ %!!!! $ "! # & Pattern vocabulary Shared vocabulary

More information

CSE 1223: Introduction to Computer Programming in Java Chapter 6 Arrays

CSE 1223: Introduction to Computer Programming in Java Chapter 6 Arrays CSE 1223: Introduction to Computer Programming in Java Chapter 6 Arrays 1 A New Problem Consider the following task: Input N real numbers representing temperature measurements and compute the following:

More information

Design Principles: Part 2

Design Principles: Part 2 Liskov Substitution Principle (LSP) Dependency-Inversion Principle (DIP) Interface-Segregation Principle (ISP) Design Principles: Part 2 ENGI 5895: Software Design Andrew Vardy Faculty of Engineering &

More information

Nat. Thomas Software Engineering Telephonics Inc. Long Island IEEE Lecture Series

Nat. Thomas Software Engineering Telephonics Inc. Long Island IEEE Lecture Series Nat. Thomas Software Engineering Telephonics Inc. Long Island IEEE Lecture Series 10/19/05 Software Design Patterns 1 Software Design Patterns Agenda What are they? Why are they important? Pattern Taxonomy

More information

CS 455 Midterm Exam 1 Spring 2015 [Bono] Thursday, Feb. 19, 2015

CS 455 Midterm Exam 1 Spring 2015 [Bono] Thursday, Feb. 19, 2015 Name: USC username (e.g., ttrojan): CS 455 Midterm Exam 1 Spring 2015 [Bono] Thursday, Feb. 19, 2015 There are 5 problems on the exam, with 50 points total available. There are 7 pages to the exam, including

More information

Design Principles: Part 2

Design Principles: Part 2 Liskov Substitution Principle (LSP) Dependency-Inversion Principle (DIP) Interface-Segregation Principle (ISP) Design Principles: Part 2 ENGI 5895: Software Design Andrew Vardy Faculty of Engineering &

More information

UML. By Somenath Mukhopadhyay.

UML. By Somenath Mukhopadhyay. UML By som@som-itsolutions.com What is the UML? Stands for unified modelling language Is the successor of OOAD methods It unifies the methods of Booch, Rumbaugh and Jacobson Now a standard with Object

More information

Create a Group or Shared LEH Application Page 1 of 13 (Last Updated November 3, 2016) Step 1 Get started. Step 2 Logon to BCeID

Create a Group or Shared LEH Application Page 1 of 13 (Last Updated November 3, 2016) Step 1 Get started. Step 2 Logon to BCeID Page 1 of 13 Step 1 Get started Go to www.gov.bc.ca/hunting Click Sign in to BC Hunting Step 2 Logon to BCeID Enter your BCeID and password Click Continue If you forgot your BCeID log-in information, you

More information

Table of Contents APPS... 2 WINDOWS 10 APPS... 2 WEATHER APP... 2 Control Groups... 3 Controls... 3 CALENDAR... 3 WINDOWS STORE...

Table of Contents APPS... 2 WINDOWS 10 APPS... 2 WEATHER APP... 2 Control Groups... 3 Controls... 3 CALENDAR... 3 WINDOWS STORE... Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.

More information

CS427a: Object-Oriented Programming Design Patterns for Flexible and Reusable design

CS427a: Object-Oriented Programming Design Patterns for Flexible and Reusable design CS427a: Object-Oriented Programming Design Patterns for Flexible and Reusable design Michael J. Fischer (from slides by Y. Richard Yang) Lecture 23b November 29, 2011 Example: Duck Game A startup produces

More information

EXAMINATION INSTRUCTIONS

EXAMINATION INSTRUCTIONS EXAMINATION INSTRUCTIONS This examination has 6 pages. Check that you have a complete paper. Each candidate should be prepared to produce, upon request, his or her SUNY/UB card. This examination has 5

More information

Outline. Design Principles: Part 2. e.g. Rectangles and Squares. The Liskov Substitution Principle (LSP) ENGI 5895: Software Design.

Outline. Design Principles: Part 2. e.g. Rectangles and Squares. The Liskov Substitution Principle (LSP) ENGI 5895: Software Design. Liskov Substitution Principle (LSP) Dependency-Inversion Principle (DIP) Interface-Segregation Principle (ISP) Liskov Substitution Principle (LSP) Dependency-Inversion Principle (DIP) Interface-Segregation

More information

Instructions for users of the TWINT merchant app

Instructions for users of the TWINT merchant app Instructions for users of the TWINT merchant app Welcome to the TWINT merchant portal! You have successfully registered for and/or logged into the merchant portal. You can now complete the registration

More information

CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed)

CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Name: Email address: CSE 373 Autumn 2010: Midterm #1 (closed book, closed notes, NO calculators allowed) Instructions: Read the directions for each question carefully before answering. We may give partial

More information

Exam Duration: 2hrs and 30min Software Design

Exam Duration: 2hrs and 30min Software Design Exam Duration: 2hrs and 30min. 433-254 Software Design Section A Multiple Choice (This sample paper has less questions than the exam paper The exam paper will have 25 Multiple Choice questions.) 1. Which

More information

PLR-MRR-Products.com 1

PLR-MRR-Products.com 1 PLR-MRR-Products.com 1 You may give away this ebook. It may not be modified in any manner. Brought to You by PLR-MRR-Products.com Disclaimer Reasonable care has been taken to ensure that the information

More information

CSE1720. General Info Continuation of Chapter 9 Read Chapter 10 for next week. Second level Third level Fourth level Fifth level

CSE1720. General Info Continuation of Chapter 9 Read Chapter 10 for next week. Second level Third level Fourth level Fifth level CSE1720 Click to edit Master Week text 08, styles Lecture 13 Second level Third level Fourth level Fifth level Winter 2014! Thursday, Feb 27, 2014 1 General Info Continuation of Chapter 9 Read Chapter

More information