One style is not a replacement for the other, and we often need to use both FP and OOP when programming, depending on what we need to do.

Take a look at the different code files to compare the two styles.