Packages and Namespaces - Packages and Their Contents

5 important questions on Packages and Namespaces - Packages and Their Contents

Development teams are given a set of Packages to ......

Development teams are given a set of Packages to work without much overlap.

In Fig. 8.10, we show a simple Package structure for a Car Hailing App.

This approach would be suitable for an organization that has a Hailing team and a Payment team and that wanted to divide the work.

If we did our division correctly, they would not often have to..


If we did our division correctly, they would not often have to coordinate.

Although the separate Payment Package teams will need to do some coordination with the Pricing Package team, they will not have to coordinate otherwise.

This approach shown is based on separation of functionality.

DdAnother more recommended approach would be to produce Use Case focused Packages.
In that approach you would construct?

In that approach, you would construct a Package for each Actor: Rider, Driver, Management, and in each Package place the associated Use Cases and Classes.

You would still need Packages to cover infrastructure.
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

See Fig. 8.11.

What approach is here been used?

A layered approach is often common, where the emphasis is on separating the project in low-level Packages containing interfaces to
  • hardware
  • and the operating system;



  • Middle layer Packages containing utilities, database Packages;
  • and higher-level Packages included the application logic.



On the top-level would be User-interface Packages,

In most projects, you could incorporate several different organizing principles.


For example

the Use Case approach might be used to....?


For example
the Use Case approach might be used to divide the UI (User Interface) and Application Logic layers into Packages.

Then the architecture and infrastructure could be distributed into separate Packages by the Layered approach.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo