Question: Which OCL expression checks if a reservation is for a room with King bed and Sea View? Assume Reservation context. 2 0 a . self.bookedRooms

Which OCL expression checks if a reservation is for a room with "King" bed and "Sea View"? Assume Reservation context.
20
a.
self.bookedRooms->exists(r | r.roomType = 'Suite')
b.
self.bookedRooms->exists(r | r.bedType = 'King' and r.view = 'Sea View')
c.
self.bookedRooms->exists(r | r.view = 'Sea View')
d.
self.bookedRooms->exists(r | r.bedType = 'King')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!