Skip to content

Instantly share code, notes, and snippets.

@jainnancy
Created December 9, 2018 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jainnancy/54a27c138c2be5ee336e69f5cb3f215a to your computer and use it in GitHub Desktop.
Save jainnancy/54a27c138c2be5ee336e69f5cb3f215a to your computer and use it in GitHub Desktop.
TicketBooking class for facade design pattern
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