public abstract class Member { private String membername; private int membermembershipYear; private char membergender; private char membertype; private int memberid; public Member(String name,int membershipYear, char gender, char type, int id) { membername = name; membermembershipYear = membershipYear; membergender = gender; membertype = type; memberid = id; } public String getname() { return membername; } public int getmembershipYear() { return membermembershipYear; } public char getgender() { return membergender; } public int getid() { return memberid; } public void setname(String nameIn) { membername = nameIn; } public void setmembershipYear(int membershipYearIn) { membermembershipYear = membershipYearIn; } public void setgender(char genderIn) { membergender = genderIn; } public void setid(int idIn) { memberid = idIn; } public String printDetails() { String allDetails; allDetails = "Name:" + membername +"Membership Year:" + membermembershipYear +"Gender(M or F):" + membergender +"Type(A ot J):" + membertype +"ID:" + memberid; return allDetails; } }
public class JuvenileMember extends Member { private int parentGuardianId; private int yearOfBirth; private String medicalNotes; public JuvenileMember(String id,String Name, int membershipYear,char gender,Member parentGuardian,int yearOfBirth, String medicalNotes) { super(id, membershipYear, gender); parentGuardianId = MemberparentGuardian; yearOfBirth = yearOfBirth; medicalNotes = medicalNotes; } }
--- Update ---
my problem is with my variables id , membership and gender in the sub class
Error comes up " cannot find symbol - constructor Member (java.lang.String,int,char)
Gratefull for any help