using jave:
Create the a Person class with the following:
Class Variables:String firstnameString lastnameint birthmonthint birthdayint birthyearString ssn (All variables above should be private)
ConstructorThe main constructor should take in all values and assign them to their respective private class variables
MethodsCreate a public getters and setters for firstname and lastname and SSN getFirstnamegetLastnamesetFirstnamesetLastname
Create a public getter method called getBirthdate, which will return a String composed of their birthday in month/day/year format. For example, if birthmonth=3, birthday=22, birthyear=2000, it should return the String "3/22/2000"
Create a public method called verifySSN that takes in a String parameter and returns a boolean. It will check the parameter against the person's SSN and return true or false based on whether they match.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here