So I read that static variables and methods break the open close principle.
Lets say you have a class that has a variable with a "lot of data" (10mb) that is final and shared across all instances E.G. a sprite map for an enemy in a game, lets say a zombie.
If I wasn't using SOLID I would make the variable private static so it's only stored in memory once. Having 100 zombies using 10mb of memory spent on a sprite map stored on the heap being much less than 1gb of memory if it was 1 per instance.
Question - Is there a SOLID way to use the heap to store one copy of the sprite map so it won't take up so much memory?