OO Packages and Layers (PPT 14) Flashcards
1
Q
What s a package in UML?
A
Is a way to group related classes together
2
Q
What are packages useful for?
A
- Organisation
- Project planning and implementation
- Layering a system
3
Q
What are some problems with user interfaces?
A
- User Interface logic changes frequently compared to business logic
- Designing a user interface requires a different skill set than complex business logic
- User interface code tends to be device dependent
4
Q
What are the three tiers in a classic three tier system?
A
- Presentation layer
- Business layer
- Data Access layer
5
Q
What are some advantages of layering?
A
- Flexibility and maintainability
- Project management (specialist teams for each layer)
- Testing (Test layers independently of each other)
- Non-functional issues (scalability, availability)
6
Q
What is a circular dependency?
A
This is when two or more modules either directly or indirectly depend on each other.
7
Q
How can we solve a circular dependency?
A
We can take the classes that both areas rely on and put them in a new package