23T2 Week 9
WEDNESDAY 1PM - 4PM (W13B)
FRIDAY 11AM - 2PM (F11A)
Slides by Alvin Cherk (z5311001)
There are assignment-ii interviews week 10. You have to do it otherwise you just get 0.
No blogs, no marks. (Including access, layout, MRs).
If you are unsure if I can access your blog, feel free to email me a link to check if I can view it.
Week 10: Kahoot & Revision. Email me if you want to cover something specific.
What kind of design pattern is it?
Behavioural
What kind of design pattern is it?
Structural
Adding behaviour to an object, without opening the object up (i.e., rewriting its contents) and changing it.
public interface Component {
void doOperationA();
void doOperationB();
}
public class ConcreteComponent implements Component {
@Override
void doOperationA();
@Override
void doOperationB();
}
public abstract class Decorator implements Component {
private Component cc;
}
public class ConcreteDecoratorX extends Decorator {}
Template