I am coming from Java, and I am revisiting the Head First Design Patterns book, (which is the bible for design patterns according to some developers). I am trying to recreate the Duck Simulator from the book by translating Java to obj-c, and this is what I have so far:
https://github.com/ZnelArts/IOSDesignPatterns/tree/master/DesignPatterns/Strategy/DuckSimulator
This simulator uses the Strategy Pattern that is applied using protocols. I have 2 problems with my implementation:
1- I can't have the Duck class to be abstract like in the Java version, on the Java version the method "display()" is abstract and should be implemented by children classes.
2- I had to expose the Duck class properties so children classes have access to them, this is not like in Java in which private properties can be seen by children classes.
What would be the ideal design for this solution?