Skip to content

Conversation

@KKSmith125
Copy link
Owner

No description provided.

}

public void on() {
setting = (setting + 1) % 4;

Choose a reason for hiding this comment

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

AM-1: Great use of the modulo, easy to read and slim code!

public interface Command {
void execute();

void undo();

Choose a reason for hiding this comment

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

AM-2: Great implementation of undo!

public class TV {
String name = "TV";

public TV(String name) {

Choose a reason for hiding this comment

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

AM-3: There is nothing wrong with this (especially since I had it written like this in the assignment), but I noticed something when was looking at the import in the Client class. Since the word TV only has two letters, TV looks like it should be a constant, since all letters are capitalized. To fix this our class names should be longer ie: Television.

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.

2 participants