Welcome to
On Feet Nation
Marc Online
Frederick Online
PH the vintage Online
zoom88 Online
goditac499 Online
Johanmichel Online
Posted by oodles erp on March 19, 2024 at 3:06am 0 Comments 0 Likes
The delegation pattern is a technique where an object expresses a certain behavior to the outside but simultaneously delegates responsibility for implementing that behavior to an associated object.
Let's understand this with the help of an example:
Let's say we want a printer. And a printer does what it is supposed to do. Let's create an interface to show this behavior.
interface Printer {
void print(final String message);
}…
© 2024 Created by PH the vintage. Powered by