Remember Jake, the market seller you met yesterday? Now, he also sells sandwiches. The sandwiches can have several fillings.
Create a simple Sandwich
class that inherits from Product
, the class you defined in the previous exercise this week. A Sandwich
object also includes a .filling
data attribute, which Product
doesn’t have.
Share your code and any questions you have on the forum.
That’s the end of Day 3