From e8203845129e6b755b55b1cb392cdf8e01e9386c Mon Sep 17 00:00:00 2001 From: lveluesl Date: Mon, 18 Sep 2023 17:00:53 -0400 Subject: [PATCH] Abstract methods --- README.md | 8 ++++---- src/MultiSet.java | 5 +++++ src/Tree.java | 2 ++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 src/MultiSet.java diff --git a/README.md b/README.md index 0f9a655..cc34f73 100644 --- a/README.md +++ b/README.md @@ -44,19 +44,19 @@ It should feel quite similar to code you would have seen in your first-year CS c In a small group (around 4 students), choose one of you to make a fork of https://github.com/CSC207-2023F-UofT/multiset-adt -- [ ] Each other team member should make a fork of that repo (or the repository owner can add the others +- [ X ] Each other team member should make a fork of that repo (or the repository owner can add the others as collaborators). -- [ ] Take the time to skim the rest of the instructions to get a better sense of what you'll be doing +- [ X ] Take the time to skim the rest of the instructions to get a better sense of what you'll be doing in this activity. If you have any immediate questions, raise these with your group or ask your TA. -- [ ] As a team, explore the python code base and identify specific pieces of code that will need to +- [ X ] As a team, explore the python code base and identify specific pieces of code that will need to be completed. (See the general strategies and advice further below, ask other groups, or ask your TA for advice as needed.) - The next section highlights a few aspects of the code which your team should think about as you explore the code. -- [ ] Based on your group discussion, you should each create your own branch and write a piece of code. +- [ X ] Based on your group discussion, you should each create your own branch and write a piece of code. - Note: If your team identifies any code that needs to be written before others can start their parts, you might choose to work on that first, push that branch to the remote, make a pull request to merge it into main, and then everyone on your team will need to make sure their fork and local copies are diff --git a/src/MultiSet.java b/src/MultiSet.java new file mode 100644 index 0000000..610075a --- /dev/null +++ b/src/MultiSet.java @@ -0,0 +1,5 @@ +public abstract class MultiSet { + public abstract boolean add(); + + public abstract void remove(); +} diff --git a/src/Tree.java b/src/Tree.java index 458a7c7..806385f 100644 --- a/src/Tree.java +++ b/src/Tree.java @@ -1,2 +1,4 @@ +import java.util.HashSet; + public class Tree { }