DEV Community

Discussion on: Lambda Expressions In Simple Terms

faridzif profile image

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

kwereutosu profile image
Kwerenachi Utosu Author

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.