From 8747d5339b420932a90c5ab63575a960b202db9f Mon Sep 17 00:00:00 2001 From: Marc Byndas Date: Mon, 13 May 2024 15:40:40 -0400 Subject: [PATCH] graded assignment #2 completed & refactored --> all tests pass --- .../org/launchcode/techjobs/oo/Location.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/main/java/org/launchcode/techjobs/oo/Location.java b/src/main/java/org/launchcode/techjobs/oo/Location.java index 3f1caf34..f11965ef 100644 --- a/src/main/java/org/launchcode/techjobs/oo/Location.java +++ b/src/main/java/org/launchcode/techjobs/oo/Location.java @@ -1,35 +1,5 @@ package org.launchcode.techjobs.oo; public class Location extends JobField { - -// private int id; -// private static int nextId = 1; -// private String value; - //////////////////////////////////////////////////////////////////////////// -// public Location() { -// id = nextId; -// nextId++; -// } public Location(String value) { super(value); } - -// public Location(String value) { -// this(); // initializes id by default -// this.value = value; -// } - //////////////////////////////////////////////////////////////////////////// -// @Override -// public boolean equals(Object o) { -// // objects are equal if share same id -// if (this == o) return true; -// if (!(o instanceof Location)) return false; -// Location location = (Location) o; -// return getId() == location.getId(); -// } - //////////////////////////////////////////////////////////////////////////// -// public int getId() { return id; } -// -// public String getValue() { return value; } -// public void setValue(String value) { -// this.value = value; -// } }