7 April 2011 CMPT166 Sean Ho Trinity Western University

Slides:



Advertisements
Similar presentations
CE881: Mobile and Social Application Programming Simon M. Lucas Menus and Dialogs.
Advertisements

18-1 Verifying Object Behavior and Collaboration Role playing – the act of simulating object behavior and collaboration by acting out an object’s behaviors.
Patterns Reusable solutions to common object-oriented programming problems When given a programming problem, re-use an existing solution. Gang of Four.
IEG3080 Tutorial 7 Prepared by Ryan.
Design Patterns CS is not simply about programming
Design Patterns. What are design patterns? A general reusable solution to a commonly occurring problem. A description or template for how to solve a problem.
Scott Grissom, copyright 2004Ch 3: Java Features Slide 1 Why Java? It is object-oriented provides many ready to use classes platform independent modern.
Dept. of Computer Engineering, Amir-Kabir University 1 Design Patterns Dr. Noorhosseini Lecture 2.
Design Patterns Module Name - Object Oriented Modeling By Archana Munnangi S R Kumar Utkarsh Batwal ( ) ( ) ( )
Design Patterns academy.zariba.com 1. Lecture Content 1.What are Design Patterns? 2.Creational 3.Structural 4.Behavioral 5.Architectural 6.Design Patterns.
Networking with Java CSc 335 Object-Oriented Programming and Design Spring 2009.
CERN – European Organization for Nuclear Research GS Department – Administrative Information Services Design Patterns in Groovy Nicolas Décrevel Advanced.
Vrije Universiteit amsterdamPostacademische Cursus Informatie Technologie Idioms and Patterns polymorphism -- inheritance and delegation idioms -- realizing.
Design Patterns CS 124 Reference: Gamma et al (“Gang-of-4”), Design Patterns.
Principles of Computer Programming (using Java) Review Haidong Xue Summer 2011, at GSU.
Design Patterns Standardized Recurring model Fits in many location Opposite of customization Fundamental types of pattern Choose and use as desired and.
Software Waterfall Life Cycle Requirements Construction Design Testing Delivery and Installation Operations and Maintenance Concept Exploration Prototype.
05 - Patterns Intro.CSC4071 Design Patterns Designing good and reusable OO software is hard. –Mix of specific + general –Impossible to get it right the.
CSSE 374: 3½ Gang of Four Design Patterns These slides derived from Steve Chenoweth, Shawn Bohner, Curt Clifton, and others involved in delivering 374.
SOEN 6011 Software Engineering Processes Section SS Fall 2007 Dr Greg Butler
Design Patterns CSCI 5801: Software Engineering. Design Patterns.
18 April 2005CSci 210 Spring Design Patterns 1 CSci 210.
Software Design Patterns (1) Introduction. patterns do … & do not … Patterns do... provide common vocabulary provide “shorthand” for effectively communicating.
Computing IV Singleton Pattern Xinwen Fu.
Design Patterns CS 124 Reference: Gamma et al (“Gang-of-4”), Design Patterns.
Parts of JAVA 1www.gowreeswar.com. Features of JAVA 2www.gowreeswar.com.
An Introduction to Programming and Object Oriented Design using Java 3 rd Edition. Dec 2007 Jaime Niño Frederick Hosch Chapter 18 Integrating user interface.
ECE450S – Software Engineering II
Design Patterns CSIS 3701: Advanced Object Oriented Programming.
Introduction to Design Patterns. Questions What is a design pattern? Who needs design patterns? How different are classes and objects in APL compared.
Creational Patterns
1 More OO Design Patterns CSC 335: Object-Oriented Programming and Design.
What to know for the exam. Smalltalk will be used for questions, but there will not be questions about the grammar. Questions might ask – how particular.
Proxy.
FACTORY METHOD. Design Pattern Space Purpose ScopeCreationalStructuralBehavioral ClassFactory MethodAdapterInterpreter Template Method ObjectAbstract.
Behavioral Patterns CSE301 University of Sunderland Harry R Erwin, PhD.
Software Design Patterns Curtsy: Fahad Hassan (TxLabs)
Stephenson College DP 98 1 Design Patterns by Derek Peacock.
Design Patterns. 1 Paradigm4 Concepts 9 Principles23 Patterns.
Design Patterns Introduction
Design Patterns SE464 Derek Rayside images from NetObjectives.com & Wikipedia.
Java Design Patterns Java Design Patterns. What are design patterns? the best solution for a recurring problem a technique for making code more flexible.
Interface Patterns. Adapter Provides the interface a client expects, using the services of a class with a different interface Note Avoid using object.
1 More OO Design Patterns CSC 335: Object-Oriented Programming and Design.
Final Review James Atlas August 12, James Atlas - CISC3702 “Family Feud” style Each team gets a chance to pick an answer Each team gets a chance.
Five Minute Design Patterns Doug Marttila Forest and the Trees May 30, 2009 Template Factory Singleton Iterator Adapter Façade Observer Command Strategy.
1 Creational Design Patterns CSC 335: Object-Oriented Programming and Design.
PROTOTYPE. Design Pattern Space Purpose ScopeCreationalStructuralBehavioral ClassFactory MethodAdapterInterpreter Template Method ObjectAbstract factory.
7 April 2004CSci 210 Spring Design Patterns 2 CSci 210.
C++ General Characteristics: - Mixed typing system - Constructors and destructors - Elaborate access controls to class entities.
Java Programming: Guided Learning with Early Objects Chapter 9 Inheritance and Polymorphism.
Chapter 10 Design Patterns.
Chapter 5:Design Patterns
MPCS – Advanced java Programming
Design Patterns Lecture part 2.
Introduction to Design Patterns
How to be a Good Developer
WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.
object oriented Principles of software design
WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.
CMPE419 Mobile Application Development
WARNING These slides are not optimized for printing or exam preparation. These are for lecture delivery only. These slides are made for PowerPoint 2010.
Software Engineering Lecture 7 - Design Patterns
Programming in Java Text Books :
Frameworks And Patterns
FINAL EXAM Final Exam Wednesday, Dec 14: 8: :00 AM (Frny G140)
CMPE419 Mobile Application Development
CIS 644 Tues. Nov. 30, 1999 W15A … patterns.
ADVANCED OBJECT-ORIENTED PROGRAMMING
FINAL EXAM Final Exam Tuesday, May 3: 1:00 - 3:00 PM (Phys 112)
Presentation transcript:

7 April 2011 CMPT166 Sean Ho Trinity Western University Semester Review 7 April 2011 CMPT166 Sean Ho Trinity Western University

CMPT166 on one slide Java: Basics: types, control flow, access modifiers Packages, arrays, exceptions I/O: console vs. file, text vs. object, network Swing and multi-threading Android (concepts) OO Design: Inheritance and polymorphism; interfaces UML: CRC/class, use-case, sequence Design patterns CMPT166: review 7 Apr 2011

Java basics (ch1-3, 6, 9-10) Java system: JDK/JRE, bytecode, VM 8 primitive types, String, Math library Style: naming, Javadoc comments if/else, switch, while, for(;;), break/continue Packages, public/private/protected Arrays: declare → allocate → create items Exceptions: try/throw/catch Catch-or-declare rule Subclassing Exception, adding auxiliary data CMPT166: review 7 Apr 2011

I/O (ch10, 19) Console: System.out/in/err File: File Network: Socket.getInputStream() TCP vs. UDP, client-server, multithread server Text in: Scanner: next(), nextLine(), … Text out: PrintWriter: print(), printf(), … Obj in: (File/Object)InputStream, readObj Obj out: (File/Object)OutputStream, writeObj Serializable interface, transient keyword CMPT166: review 7 Apr 2011

Swing (ch17-18) Event programming model: main() → JFrame subclass constructor → create/layout widgets Events → event listeners (w/anon inner classes) Widgets: JPanel, JButton, JLabel, JTextBox, … Action cmd: .setText, .getActionCommand() Menus: MenuBar, Menu, MenuItem Layout managers Drawing: paint[Comp](), shape, colour, clip Thread model: event-dispatch, SwingWorker CMPT166: review 7 Apr 2011

Android What is it, history, component architecture compare vs. iPhone OS Activity, Service, BroadcastReceiver, ContentProvider Activity lifecycle: active, paused, stop, dead Views (UI widgets) XML configuration of views Resources: layouts, strings, drawables Event listeners for buttons: OnClickListener CMPT166: review 7 Apr 2011

OO concepts (ch4-5, 7-8, 13) Creating classes: attributes/methods private → (package) → protected → public Constructors, calling self(), copy constructor static: class methods/attribs; static import Inheritance: overriding, polymorphism OO design: UML class diagram, use-case diag “has a” / “is a” / “is a kind of” / “knows how to” Subclass, assoc/aggr/comp, multiplicity Abstract, (mthd, cls) final (attrib, mthd, cls) Interfaces CMPT166: review 7 Apr 2011

UML Use-case diagram: requirements Specifying the bounds of the system Actors, use cases Basic flow, alternate flows Component diagram: Class-Resp.-Collab. Sequence diagram: messages, flows Class diagram: Inherit., assoc., aggregation, composition Direction of dependency; multiplicity CMPT166: review 7 Apr 2011

Design patterns Creational: Factory Method, Abstract Factory, Builder, Prototype, Singleton Structural: Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy Behavioural: Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer CMPT166: review 7 Apr 2011