Object Oriented Pizzas

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page

Answer:

You probably need the following:

  • A boss (you, of course!)
  • Cooks.
  • Order-takers.
  • Delivery people.

Object Oriented Pizzas

Maybe you need a few other job classifications. Perhaps there should be an order handler that takes the pizza from the cook and prepares it for delivery. Or maybe that should be the order-taker's job?

In thinking these thoughts you are doing something close to object oriented design. It is not that easy to get right, even for familiar situations. If you were designing your pizza delivery business you would probably spend several weeks (or months) designing your business plan. When you have the final design, you hire employees and buy pizza-making material.

Then it is run time.

QUESTION 3:

Once your pizza delivery business is up and running, will your employees need to communicate with each other?