Download presentation
Presentation is loading. Please wait.
Published byFranklin McKenzie Modified over 9 years ago
2
Three Layer Architecture
3
Why Bother with the Middle Layer?
4
Consider Facebook PC Phone Tablet
5
Without a Middle Layer… Web browser (Add Update etc.) Android device (Add Update etc.) Apple device (Add Update etc.) Presentation LayerMiddle LayerData Layer
6
Include the Middle Layer… Web browser Android device Apple device Presentation Layers Middle Layer (Add Update Delete Validate Query Results) Data Layer
7
Designing Classes
8
The Specification You are required to create a web based application that allows a user to store address details. The user should be able to add, edit and delete addresses. Each address should be validated to capture any errors in the data. A typical address should consist of house no, house name, street, town, post code, county code, date added and a flag for active. All addresses will be stored in a suitable database.
9
Identify the Nouns Application Address Addresses User Data Database
10
List the Methods Add Edit Delete Validate
11
Find the Properties house no house name street town post code county code date added active
12
Draw the Class Address house no : string house name : string street : string town : string post code : string county code : integer date added : date active : Boolean Add() : Boolean Edit() : Boolean Delete() : Boolean Validate() : String
13
Now we write the code…
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.