@LarsHvam Well, factories need to be friends of the classes (with private instantiation level) whose instances they must create. Do you see a problem with this pattern?
๐ฅท Calling all assassins ๐ฅท
I'm giving away a FREE #PS5 code of Assassin's Creed Shadows: Deluxe Edition! The lucky winner will be randomly selected. To enter, simply:
โค๏ธ Like
โถ๏ธ Follow
๐ Retweet
Giveaway ends on March 24 at 5PM ET! ๐บ๏ธ
@JelenaAtLarge@JelenaAtLarge I still don't get the hate ๐คท๐ฝโโ๏ธ Yes, i agree that the example does not present a valid use case.
However, what's wrong declaring *all* variables with FINAL by default? How often would you need to change a variable once it is set?