Welcome to
On Feet Nation
Ab12 Online
geekstation Online
Shiela Online
Peter Online
Maria Online
basitkhatr6666 Online
Posted by Khalid Shaikh on October 6, 2024 at 10:35am 0 Comments 0 Likes
Posted by Khalid Shaikh on October 6, 2024 at 10:35am 0 Comments 0 Likes
Posted by Donna on October 6, 2024 at 10:32am 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);
}
https://erpsolutions.oodles.io/developer-blogs/Delegation-Pattern-a...
© 2024 Created by PH the vintage. Powered by
You need to be a member of On Feet Nation to add comments!
Join On Feet Nation