From https://stackoverflow.com/a/44981969/156458
There are two common approaches for a language to support both functional and object oriented programming.
Every callable is a method and functions are just methods of a hidden class, which is the approach adopted by Ruby;
or every callable is a function and object methods are just functions with an implicit or explicit parameter that receives the object the method was called from, which is the approach adopted by Python.
Is it an accurate statement? What is the source of the statement?
What are the approaches for the following languages to support both functional and OO programming:
- Scala
- Java
- C#?
Thanks.