Skip to content

feat:Adds Dasia's SmartPhone Object and Test to Lesson_16 #523

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

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

Dasiame
Copy link
Contributor

@Dasiame Dasiame commented Nov 1, 2024

No description provided.

@Dasiame
Copy link
Contributor Author

Dasiame commented Nov 3, 2024

I tried to make my folder lowercase but it wouldn't let me.

@VicenteVigueras
Copy link

VicenteVigueras commented Nov 13, 2024

Great job overall! Please review the changes requested so we can get this merged.

@@ -0,0 +1,7 @@
package com.codedifferently.lesson16.SmartPhone;

public enum Name {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BrandName would be better.

private int volume;

public SmartPhone(
Name brandName, String model, int batteryPercentage, boolean power, ArrayList<String> apps) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be List<String> apps so that clients can pass in any implementation of a List that works for them. This meets the spirit of the dependency inversion principle.

@anthonydmays anthonydmays merged commit 725c15b into code-differently:main Nov 19, 2024
1 check passed
@Dasiame Dasiame deleted the lesson_16 branch November 20, 2024 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants