Command class: make non-abstract
Command class is abstract.
Abstract classes are not an LO covered at level2.
Let's make Command class non-abstract so that students who haven't
learned about abstract classes are not confused by it.
diff --git a/doc/Diagrams.pptx b/doc/Diagrams.pptx
index 98bc88d..ccecb39 100644
--- a/doc/Diagrams.pptx
+++ b/doc/Diagrams.pptx
Binary files differ
diff --git a/doc/images/mainClassDiagram.png b/doc/images/mainClassDiagram.png
index d688c39..344408f 100644
--- a/doc/images/mainClassDiagram.png
+++ b/doc/images/mainClassDiagram.png
Binary files differ
diff --git a/src/seedu/addressbook/commands/Command.java b/src/seedu/addressbook/commands/Command.java
index 67b1934..2ff8f15 100644
--- a/src/seedu/addressbook/commands/Command.java
+++ b/src/seedu/addressbook/commands/Command.java
@@ -11,7 +11,7 @@
/**
* Represents an executable command.
*/
-public abstract class Command {
+public class Command {
protected AddressBook addressBook;
protected List<? extends ReadOnlyPerson> relevantPersons;
private int targetIndex = -1;
@@ -39,7 +39,9 @@
/**
* Executes the command and returns the result.
*/
- public abstract CommandResult execute();
+ public CommandResult execute(){
+ throw new UnsupportedOperationException("This method is to be implemented by child classes");
+ };
/**
* Supplies the data the command will operate on.