Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by Anatoliy on 09.07.2016.
- * Task 4.2.7-8
- */
- public class Person {
- private String name;
- private int age;
- public Person(String name, int age) {
- this.name = name;
- this.age = age;
- }
- public String getName() {
- return this.name;
- }
- public int getAge() {
- return this.age;
- }
- public void setAge(int x) {
- this.age = x;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement