Created
December 9, 2018 19:14
-
-
Save jainnancy/54a27c138c2be5ee336e69f5cb3f215a to your computer and use it in GitHub Desktop.
TicketBooking class for facade design pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package subsystems | |
class TicketBooking { | |
def bookFlight(tourPackage : String, destination : String, departure : String) : Unit = { | |
println("Round Trip Flight tickets for " + destination + " & " + departure + " is booked under package " + tourPackage) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment