DEV Community

Discussion on: How do you create entities?

Collapse
 
bias profile image
Tobias Nickel

Not sure why the constructor isn't used for setting the values.

also what if the user should not see the email, does it get striped or is it optional. would the lead break other code if email was not set. or should the lead get the email set to null before send to clients. In OOP there are always all these questions and in different project with different teams and people, you get to other conclusions.