CS计算机代考程序代写 package programmingexample1;

package programmingexample1;

/**
* Factory pattern for creating rooms
* This allows room types to be added or modified easily in the future
*/

public class RoomFactory {

/**
* Creates and returns a room of the corresponding type with the room number
*
* @param number room number to set for new room
* @param size desired size of the room (“small”, “medium”, “large”)
* @return New Room created
*/
public Room createRoom(int number, String size) {
return null;
}
}