what is wrong in my code
package com.codegym.task.task05.task0509;
/*
Create a Friend class
*/
public class Friend {
String name;
int age;
char sex;
public void intialize(String name)
{
this.name = name;
}
public void intialize(String name,int age)
{
this.name = name;
this.age = age;
}
public void intialize(String name,int age, char sex)
{
this.name = name;
this.age = age;
this.sex = sex;
//write your code here
}
public static void main(String[] args) {
Friend fr1 = new Friend();
fr1.intialize("a");
Friend fr2 = new Friend();
fr2.intialize("a",5);
Friend fr3 = new Friend();
fr3.intialize("a",5,'M');
}
}