java/screenshot XXXXXXXXXXat-25549-am-ademqxaa.png java/screenshot XXXXXXXXXXat-25603-am-wqoh0c14.png java/screenshot XXXXXXXXXXat-25619-am-epazsmg4.png java/screenshot...

1 answer below »
pfa


java/screenshot-2020-12-08-at-25549-am-ademqxaa.png java/screenshot-2020-12-08-at-25603-am-wqoh0c14.png java/screenshot-2020-12-08-at-25619-am-epazsmg4.png java/screenshot-2020-12-08-at-25633-am-avufndgx.png
Answered 2 days AfterMar 13, 2021

Answer To: java/screenshot XXXXXXXXXXat-25549-am-ademqxaa.png java/screenshot...

Neeraj answered on Mar 16 2021
156 Votes
PersonTest/outputscreen.png
PersonTest/src/Person.java
PersonTest/src/Person.java
public class Person {
private String firstName = "";
    private String lastName = "";
    private int birthDay = 0;
    private int birthMonth = 0;
    private int birthYear = 0;
    public String getFirstName() {
        return firstName;
    }
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    public String getLastName() {
        return lastName;
    }
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    public int getBirthDay() {
        return birthDay;
    }
    public int getBirthMonth() {
        return birthMonth;
    }
    public int getBirthYear() {
        return birthYear;
    }
    public void setBirthDate( int birthMonth, int birthday,int birthYear) {
        if (birthYear <= 1900) {
            System.out.println("Incorrect birth year");
        }
        else if (birthMonth > 12 || birthMonth < 1) {
            System.out.println("Incorrect birth Month");
        } else if (birthday < 1...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here