Why doesn't it consider my setters?
package fr.codegym.task.task05.task0508;
/*
Accesseurs get et set pour la classe Personne
*/
public class Personne {
String nom = null;
int age = 0;
char sexe = 0;
String getNom(){
return nom;
}
public void setNom(String nom){
this.nom = "Oscar";
}
int getAge(){
return age;
}
public void setAge(int age){
this.age = 3;
}
char getSexe(){
return sexe;
}
public void setSexe(char sexe){
this.sexe = 1;
}
public static void main(String[] args) {
}
}