Package design_patterns.strategy

Source Code of design_patterns.strategy.BookReservation

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package design_patterns.strategy;

import beans.Reservation;
import beans.User;
import design_patterns.bridge.AddReservation;

/**
*
* @author root
*/


    //Concrete Strategy 2

    class BookReservation implements IReservation{

        @Override
        public Reservation startReservationManagement(int nextID,Product product,User u){
            AddReservation reservation = new AddReservation(product,u);
            return reservation.startReservationManagement(nextID);
        }
    }
TOP

Related Classes of design_patterns.strategy.BookReservation

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.