I've looked over the errors but I'm not seeing any missing variables, and I don't see what the issue is with the setters or getters. Any insight would be appreciated. Thanks.
package com.codegym.task.task05.task0508;
/*
Getters and setters for the Person class
*/
public class Person {
private String name;
private int age;
private char sex;
public Person(String name, int age, char sex){
this.name = name;
this.age = age;
this.sex = sex;
}
public void setName (String newName){
this.name = newName;
}
public String getName(){
return name;
}
public void setAge(int newAge){
this.age = newAge;
}
public int getAge(){
return age;
}
public void setSex(char newSex){
this.sex = newSex;
}
public char getSex(){
return sex;
}
public static void main(String[] args) {
}
}