Exercise: Jake's Stall at The Market

Let’s start Day 2 with an exercise.

Jake has a stall at the local market. He sells tea, coffee, and cookies. Each of these products has a cost price and a selling price.

Write a Product class and create instances of this class. Each instance can be a tea, a coffee, or a cookie.

What other data attributes do you think you’ll need in this class? And what methods can you add?

We’ll discuss your ideas and your code in the forum.

You must own this product to join the conversation.