@@ -0,0 +1,656 @@
+package FactoryMethod;%0A%0Apublic class Location %7B%0A %0A    private String destinationCity;%0A    private double priceNight;%0A    %0A    %0A    public Location(String destination, double priceNight)%0A    %7B%0A        this.destinationCity=destination;%0A        this.priceNight=priceNight;%0A    %7D%0A    %0A%0A    public String getDestinationCity() %7B%0A        return destinationCity;%0A    %7D%0A%0A    public void setDestinationCity(String destinationCity) %7B%0A        this.destinationCity = destinationCity;%0A    %7D%0A%0A    public double getPriceNight() %7B%0A        return priceNight;%0A    %7D%0A%0A    public void setPriceNight(double priceNight) %7B%0A        this.priceNight = priceNight;%0A    %7D%0A     %0A    %0A%7D%0A

Create Location.java