DEV Community

Discussion on: Lambda Expressions In Simple Terms

Collapse
 
faridzif profile image
Faridzi

Sorry a little bit off topic, but what is the actual use of super(); in the Product class constructor? I'm a bit curious.
Thanks for sharing, I have better understanding towards lambda now :D

Collapse
 
kwereutosu profile image
Kwerenachi Utosu

It’s just simply to emphasize that the Product class is the parent class. I initially wanted to add a sub class for better emphasis, but I removed it. That Product class can function the same without the super() added there.