Class Persons This class will set the name, gender and Lists for Parents, Children and Spouse.
Class Family This class will utilise methods to add members to the family tree. Method1: Boolean Male(): - Will check if the person is present in tree - IF TRUE - Store person in checkPerson - Check if person's spouse is male (IF SO return false) - Check if persons gender has been assigned (IF not, assign 'Male' and return true) - ELSE - Make the person - Set gender to male Method2: Boolean Female(): - Will be the same as Male() in terms of functionality. Method3: Boolean isMale(): -Will check if the person is present in tree IF
Method4: Boolean isFemale():
Boolean setParentsOf():
String[] getParentsOf():
String[] getChildrenOf():
Boolean ishere():
Persons getPerson():
Boolean checkMaleSpouse():
Boolean isChild():
Class Main