Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Composite pattern: Given three classes: Staff (interface), Faculty and Director. a) Draw a class diagram using composite pattern b) Write a pseudo class in java.
Composite pattern: Given three classes: Staff (interface), Faculty and Director. a) Draw a class diagram using composite pattern b) Write a pseudo class in java. You can ignore the detail implementation but your code should indicate the relations. Adapter pattern: Client interface +displayfin x1, in y1, in x2, in y2) adapteer LegacyRectangle Rectangle +display(in x1, in y1, in x2, in y2) +display (in x1, in y1, in w, in h) a) Draw a sequence diagram for the above class diagram (5 bonus) b) Write a pseudo class in java. You can ignore the detail implementation but your code should indicate the relations. Composite pattern: Given three classes: Staff (interface), Faculty and Director. a) Draw a class diagram using composite pattern b) Write a pseudo class in java. You can ignore the detail implementation but your code should indicate the relations. Adapter pattern: Client interface +displayfin x1, in y1, in x2, in y2) adapteer LegacyRectangle Rectangle +display(in x1, in y1, in x2, in y2) +display (in x1, in y1, in w, in h) a) Draw a sequence diagram for the above class diagram (5 bonus) b) Write a pseudo class in java. You can ignore the detail implementation but your code should indicate the relations
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started