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

[W6.2f][F09-3]Sarah Taaher Bonna #129

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SarahTaaherBonna
Copy link

No description provided.

Copy link

@fanyiii fanyiii left a comment

Choose a reason for hiding this comment

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

Good job! Remember to make a clean PR in the future :)

}
// public CommandResult execute(){
// throw new UnsupportedOperationException("This method should be implement in child classes");
// }
Copy link

Choose a reason for hiding this comment

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

Don't leave commented out code. Just go ahead and delete removed code, as we can recover them later

@@ -70,4 +72,9 @@ public int getTargetIndex() {
public void setTargetIndex(int targetIndex) {
this.targetIndex = targetIndex;
}

public boolean isMutating(String userCommandText) {
Copy link

Choose a reason for hiding this comment

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

This method should have a header comment. If not, users of the method as well as those who overrides method will not know how exactly the method behaves. Also, as pointed out in the other PR, you should make use of polymorphism and implement the different behavior in individual sub classes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants