Department of Information Engineering 404 Is-a relation Skeleton code class MapSite { //ABSTRACT class public virtual void Enter(){} } class Room : MapSite { //CONCRETE class public override void Enter(){…} //implementation } Room.Enter() - enter a room Door.Enter() - enter the room beyond the door Wall.Enter() - get hurt, stay at the same room
{}