First, your Person class is "quite" correct. The main problem is that age instance variable is String but getAge returns an int. This gives you a compilation error!
Second (less important) declare...
Type: Posts; User: andbin
First, your Person class is "quite" correct. The main problem is that age instance variable is String but getAge returns an int. This gives you a compilation error!
Second (less important) declare...