Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Dummy Assignment

1 answer below »
Answered 8 days After Feb 10, 2021

Solution

Kshitij answered on Feb 18 2021
156 Votes
Person Class
*
Created
y
IntelliJ
IDEA.
* Author: Kshitij Varshney (kshitijvarshne1)
* Date: 18-Feb-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
irthDay, 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