CS计算机代考程序代写 Java b’a80116a2c6e5d3047fd8f7572290f0b8eee1cf’

b’a80116a2c6e5d3047fd8f7572290f0b8eee1cf’

blob 494�package programmingexample1;

import java.time.LocalDateTime;

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

public class SmallRoom extends Room {

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

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

}