1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.yaml.snakeyaml.constructor;
17
18
19
20
21 public class Person {
22 private String firstName;
23 private String lastName;
24 private Integer age;
25
26 public Person(String firstName, String lastName, Integer age) {
27 this.firstName = firstName;
28 this.lastName = lastName;
29 this.age = age;
30 }
31
32 public Person() {
33 }
34
35 public Person(String lastName) {
36 this.lastName = lastName;
37 }
38
39 public String getFirstName() {
40 return firstName;
41 }
42
43 public void setFirstName(String firstName) {
44 this.firstName = firstName;
45 }
46
47 public String getLastName() {
48 return lastName;
49 }
50
51 public void setLastName(String lastName) {
52 this.lastName = lastName;
53 }
54
55 public Integer getAge() {
56 return age;
57 }
58
59 public void setAge(Integer age) {
60 this.age = age;
61 }
62
63 }