Open paulkokos opened 7 months ago
The solution is to make a singleton INSIDE the Image class. This way there will be only one instace of each image. From there it can be extended acordingly
there is no way to make an inner class, singleton of an outer class. It will still have one instance of inner classes no matter how many outer classes will be created
A different aproach will be to create the inner class inside the constructor. Ans expose it accordingly.
Describe the bug Header is one for all images
To Reproduce Steps to reproduce the behavior: Just see the adresss of the header
Expected behavior The addresss should not be the same
Screenshots
Desktop (please complete the following information):
Additional context Need to change the Singleton Pattern to something else