CS计算机代考程序代写 Java b’6b0c5a3ec6e8a3ed548e89e989712e25eb0f78′

b’6b0c5a3ec6e8a3ed548e89e989712e25eb0f78′

blob 498�package programmingexample1;

import java.time.LocalDateTime;

/**
* Concrete implementation of Room with a medium size
* Just overrides the abstract roomSize function to set set
*/

public class MediumRoom extends Room {

/**
* Constructor that sets the time of creation to now
*/
public MediumRoom() {
super(LocalDateTime.now());
}

/**
* Set room size to medium
*/
@Override
public String roomSize() {
return “medium”;
}

}