Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestPerson
- {
- public static void main(String args[])
- {
- Person p1 = new Person("Jose" , 20);
- Person olderPerson = p1.addAge(10);
- System.out.println(olderPerson);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement