Challenge: Facade Pattern
Understand how to implement the facade pattern by creating a system where customers can buy or pre-order hair products based on inventory availability. This lesson helps you link multiple classes to provide a clear user message about product purchase or pre-order options.
We'll cover the following...
We'll cover the following...
Problem statement
In this challenge, you have to implement a part of an online hair product ordering system. The available products are shampoo, conditioner, and hair serum.
A customer who is shopping online can buy any of these. A product object has the following properties:
-
productName: name of the product, that is,shampoo,conditioner, orhair serum -
amount: the number of bottles that the ...