SWEN-261 Introduction to Software Engineering
Department of Software Engineering Rochester Institute of Technology
Object-Oriented Design II Controller SWEN-261 Pure fabrication - - PowerPoint PPT Presentation
Object-Oriented Design II Controller SWEN-261 Pure fabrication Introduction to Software Open/close Engineering Department of Software Engineering Polymorphism Rochester Institute of Technology Liskov substitution The lesson continues
Department of Software Engineering Rochester Institute of Technology
2
3
4
UI Tier Appl Tier Model Tier Some Appl Tier class Some Model Tier class Appl Tier Model Tier View controllers work through these classes
UI Tier View controllers work through these classes
Operation Subsystem Operation Op1 Op2 Op3
5
6
7
8
9
10
mathOp() must accept a param of 1 through 10. It could accept a wider range, i.e. 1 to 15. mathOp() can not quadruple the value of the parameter because that would lead to a broader post-condition, i.e. return value between 4 and 40. mathOp() could have a narrower post-condition of 3 to 17, i.e. it is a PlusTwo class for its full range