Class ‘Room’ is abstract; cannot be instantiated

You have this error because you are trying to create an instance of abstract class, which is impossible. You have to

room.add(new Family(roomNumber, ensuoute));

or

room.add(new Standard(roomNumber, ensuoute));

Leave a Comment