SWD392_SU25_PE_1_4135.webp
Yaga97

SWD392_SU25_PE_1_4135.webp

  • Media owner Yaga97
  • Ngày thêm
Bài viết gốc: Chủ đề 'SWD392_SU25_PE_1'
Zoom
Kizspy. melic void notifyNotifications() {
for (Notification notification: notifications) {
notification.update(movie Title, showTime, availableSeat);
}
public void updateShowtime(String title, String time, int seat) {
this.movie Title title;
this.showTime = time;
this.availableSeat = seat; notifyNotifications();
public class CustomerNotification implements Notification {
public void update(String movie Title, String showTime, int availableSeat) {
/* Send notification to customer */
1.WHAT DESIGN PATTERN is used in the code above? Identify its name and pattern family
(creational, structural, or behavioral). (0.5 points)
2.DRAW the class diagram for this pattern. (1 point)
3.DESCRIBE a practical situation in software development where this pattern would be
appropriate. (0.5 points)
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
SWD392
Thêm bởi
Yaga97
Ngày thêm
Lượt xem
1,516
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom