Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use initializer list on Drink class #415

Open
minorsecond opened this issue Sep 21, 2022 · 1 comment
Open

Use initializer list on Drink class #415

minorsecond opened this issue Sep 21, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Good ticket for hacktoberfest

Comments

@minorsecond
Copy link
Owner

Is your feature request related to a problem? Please describe.
Currently, the only way to set properties on Drink objects is by using setters. It would be nice to be able to use an initializer list instead.

@minorsecond minorsecond added enhancement New feature or request good first issue Good for newcomers labels Sep 21, 2022
minorsecond added a commit that referenced this issue Sep 22, 2022
minorsecond added a commit that referenced this issue Sep 22, 2022
@minorsecond minorsecond added the hacktoberfest Good ticket for hacktoberfest label Sep 23, 2022
@minorsecond
Copy link
Owner Author

Currently, the constructor is created. All that's needed is to make all instances of Drink use the constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Good ticket for hacktoberfest
Projects
None yet
Development

No branches or pull requests

1 participant