Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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