From my understanding, OOP languages deals with abstraction, inheritance and polymorphism. Is that correct?
And my question is how can an non OOP language make use of design patterns?
From my understanding, OOP languages deals with abstraction, inheritance and polymorphism. Is that correct?
And my question is how can an non OOP language make use of design patterns?
The link noted in Shawn Mclean's comment is excellent.
Design Patterns are often about OO, but they don't have to be. The original design patterns were pattern languages for physical architecture.
Have a look at Patterns in Functional Programming or (Real Time/embedded)[http://www.eventhelix.com/realtimemantra/patterns/] where OO is often not available.
In C function pointers are often used to implement polymorphism, design pattern Command etc.