Hello everyone,
In my program, I had used INITIALIZE tree times like it is required.
However, the task is still failed.
Can anyone help with this, please?
Thanks in advance.
package fr.codegym.task.task05.task0509;
/*
Créer une classe Ami
*/
import com.sun.org.omg.CORBA.InitializerHelper;
import org.omg.CORBA.INITIALIZE;
public class Ami {
public String nom ;
public int age ;
public char sexe ;
INITIALIZE Ami(String nom) {
this.nom = nom ;
return this.Ami(nom);
}
INITIALIZE Ami(String nom , int age){
this.nom = nom ;
this.age = age ;
return this.Ami(nom, age);
}
INITIALIZE Ami (String nom, int age , char sexe){
this.nom = nom ;
this.age = age ;
this.sexe = sexe ;
return this.Ami(nom, age, sexe);
}
public static void main(String[] args) {
}
}