0

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?

jgauffin
  • 99,844
  • 45
  • 235
  • 372
yt729
  • 11
  • 5

2 Answers2

0

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.

Paul Rubel
  • 26,632
  • 7
  • 60
  • 80
0

In C function pointers are often used to implement polymorphism, design pattern Command etc.

Anders Johansen
  • 10,165
  • 7
  • 35
  • 52