Skip to content

Instantly share code, notes, and snippets.

@jainnancy
Created December 9, 2018 19:12
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/3ceece86396f735edd8073cba9a279a7 to your computer and use it in GitHub Desktop.
Save jainnancy/3ceece86396f735edd8073cba9a279a7 to your computer and use it in GitHub Desktop.
Client class for facade design pattern
package app
import facade.TourAndTravelFacade
object Client extends App
{
val facade = new TourAndTravelFacade
val tourPackage = "Platinum"
val destination = "Udaipur"
val departure = "Delhi"
facade.bookHolidayPackage(tourPackage, destination, departure)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment