Description: Write a Java class Bod, representing a person, to satisfy the following requirements:
There is a constructor that takes two parameters: a String name, being the name of the person, and an int age, being the age of the person.
There are getter methods getName() and getAge() that return the person's name and age respectively.
This is a method growOlder(nYears) that increments the persons age by nYears (an integer).
(Click to check if it's the file you need, and recomment it at the bottom):
|Bod.java|| 491 || 2020-11-22
|Bod.class|| 1282 || 2020-11-22|