This actor has 3 doors which can all be opened and closed. The open and close function will open or close all doors and also call the closure after each individual door has been modified. What happens if the open function has been called and the closure calls the close function?
Output:
Open All
π¦ π³ π© π³ π¨ π³
π¦ π² π© π³ π¨ π³
π¦ π² π© π² π¨ π³
π¦ π² π© π² π¨ π²
Close All
π¦ π² π© π² π¨ π²
π¦ π³ π© π² π¨ π²
π¦ π³ π© π³ π¨ π²
π¦ π³ π© π³ π¨ π³