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/156e23f80fbf1b36da43dc7fb6339446 to your computer and use it in GitHub Desktop.
Save jainnancy/156e23f80fbf1b36da43dc7fb6339446 to your computer and use it in GitHub Desktop.
HotelBooking class for facade design pattern
package subsystems
class HotelBooking {
def bookHotel(tourPackage : String, destination : String) : Unit = {
println("Hotel booked at " + destination+ " under package " + tourPackage)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment