Person.java

mail@pastecode.io avatar
unknown
plain_text
3 years ago
306 B
1
Indexable
Never
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 name;

  }

   

  public int getAge(){

    return age;

  }
}