Dummy Assignment

1 answer below »
Answered 8 days AfterFeb 10, 2021

Answer To: Dummy Assignment

Kshitij answered on Feb 18 2021
142 Votes
Person Class
/*
Created
by
IntelliJ
IDEA.
* Author: Kshitij Varshney (kshitijvarshne1)
* Date: 18-F
eb-21
* Time: 6:35 PM
* File: Person.java
*/
package feb18_21;
public class Person {
private String firstName;
private String lastName;
private int birthMonth;
private int birthDay;
private int birthYear;
public Person(String firstName, String lastName, int birthMonth, int
birthDay, int birthYear) {
this.firstName = firstName;
this.lastName = lastName;
this.birthMonth = birthMonth;
this.birthDay = birthDay;
this.birthYear = birthYear;
}
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 getBirthMonth() {
return birthMonth;
}
public void setBirthMonth(int birthMonth) {
this.birthMonth = birthMonth;
}
public int...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here