A class designer is designing a Person class that he wants to be as popular and as reusable as the String class and so he is attempting to maximize the reusability through the addition of as many methods as he can think of. Some of the methods he has added are listed below.
• Person(int age, String name, String address) //constructor• String getName()• void setName(String name)• String toString() //returns the name of the person• int getSSN() //returns the person's Social Security Number• String getSSNAsString() //returns the SSN as a String• Person[] siblings() //returns an array of the siblings of the person• Race getRace()• Person getBoss() //returns the person who is employing this person• boolean isDogOwner()• boolean isUSCitizen()• String getAddress()• int numberOfCarsOwned()• int getAge()• int setAge()
a. For each method, indicate whether (a) it is a core (essential) method that should be included, (b) it is an inessential but convenient method and so should be included, (c) it should not be included. Briefly explain your reasoning.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.