From 146c440afa7890fe46028c4ac8e1e266305fc2f5 Mon Sep 17 00:00:00 2001 From: Alina Zacaria <120036218+alina-z7@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:20:57 -0600 Subject: [PATCH] Revert "added member class" This reverts commit 6eba4ae7c2952c7d40c5fd739e53fb308a84aa67. --- Member.java | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 Member.java diff --git a/Member.java b/Member.java deleted file mode 100644 index bd5d664..0000000 --- a/Member.java +++ /dev/null @@ -1,33 +0,0 @@ -import java.time.LocalDate; - -public class Member extends Person { - - public Long id_number; - public LocalDate creation_date; - public LocalDate expiration_date; - public LocalDate last_checked_in; - - public Member(){super();} - public Member(String firstName, String lastName, String emailAddress, LocalDate birthDate, long phoneNumber) { - super(firstName, lastName, emailAddress, birthDate, phoneNumber); - } - - public void setIdNumber(long number) {id_number = number;} - public void setCreationDate(LocalDate date) {creation_date = date;} - public void updateLastCheckedIn() {last_checked_in = LocalDate.now();} - public void updateExpirationDate(LocalDate date) {expiration_date = date;} - - public long getIDNumber() {return id_number;} - public LocalDate getCreationDate(){return creation_date;} - public LocalDate getExpirationDate(){return expiration_date;} - public LocalDate getLastCheckedInDate(){return last_checked_in;} - - public String toString(){ - return "MEMBER: " + getName() + " -> {\n\t" - + "Id Number: " + id_number + "\n\t" - + "Membership Created on: " + creation_date.toString() + "\n\t" - + "Membership Expires on: " + expiration_date.toString() + "\n\t" - + "Last Checked in on: " + last_checked_in.toString() + "\n\t" - + "Email: " + id_number + "\n}"; - } -} \ No newline at end of file