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