re: The two universes of programming! OOP and FP! VIEW POST


I I think that you explained some concepts incorrectly. encapsulation for example, wikipedia defines "encapsulation refers to the bundling of data with the methods that operate on that data, or the restricting of direct access to some of an object's components."

polymorphism isn't about performing multiple tasks. it's about variables referencing objects that do not have the declared type but another (often derived) type.


Thanks for your comment
I think we are both on the same page

Code of Conduct Report abuse