/GildedRose-Strategy-Factory-Attempt

I am trying to get a factory implemented in a version of my Gilded-Rose-Strategy code: https://github.com/Max-Derner/Gilded-Rose-Strategy

Primary LanguageJava

GildedRose-Strategy-Factory-Attempt

I am trying to get a factory implemented in a version of my Gilded-Rose-Strategy code: https://github.com/Max-Derner/Gilded-Rose-Strategy

So I have a StaticStrategyFactory which returns objects of type IStrategy, as the interface IStrategy has an update method attached to it which produces a cleaner code.

My trouble is that the method updateQuality() in the GildedRose class does not recognise that it is operating on a subclass that implements IStrategy and instead requests that I make the update() method in IStrategy static, whereas I want it to go and use the overwritten methods in each concrete class.

If you can see where I'm going wrong please save me from my madness...