Yakov Fain “Losing Polymorphism with Java Lambda Expressions”

Yakov Fain “Losing Polymorphism with Java Lambda Expressions”

Luxoft Training offers you to get acquainted with an article of IT-guru Yakov Fain «Losing Polymorphism with Java Lambda Expressions».
Luxoft Training offers you to get acquainted with an article of IT-guru Yakov Fain «Losing Polymorphism with Java Lambda Expressions». 

In his article, Yakov shows how to solve the same problem using the object-oriented programming and using lambda expressions. Also he proves that the loss of polymorphism is not always bad for the code. 

How he did it? 

He rewrote one of the examples, which he usually operated with during his Java training for explaining the polymorphism using a lambda expression. Despite the fact that lambda expressions are typical for functional programming style, while the polymorphism is one of the most important object-oriented principles, Yakov decided to try to mix the OOP and functional styles. 

You can see the result here.

Still have questions?
Connect with us