Week 9
TUESDAY 9AM - 12PM (T09B)
TUESDAY 1PM - 4PM (T13B)
There are assignment-ii interviews week 9 and week 10. You have to do it at least once otherwise you will not get marked.
Contribution. Feel free to speak to me privately.
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 ConcreteComponent cc;
}
public class ConcreteDecoratorX extends Decorator {}
Template