Reduce redundant objects with Flyweight Design pattern
Object creation is the most fundamental operation in OOP. It would be hard to count the number of objects we create(knowingly or behind the scene) even in the most trivial of use cases.
Each object is created on the heap and will take up some space ...
blog.abhinavpandey.dev5 min read