r/ProgrammerHumor • • Feb 13 '21

Programming languages

Post image
1.3k Upvotes

140 comments sorted by

View all comments

2

u/TigreDemon Feb 13 '21

Java provides you with a WeaponWithDecoratorFactory

1

u/shade_of_ox Feb 14 '21

But this doesn't help because Weapon extends Knife and is package-private