package com.codegym.task.task05.task0516;
/*
You can't buy friends
*/
public class Friend {
String name;
int age;
char sex;
public Friend(String name)
{
this.name = name;
}
public Friend(String folder, int age)
{
this.name = name;
this.age = age;
}
public Friend(String folder, int age, char sex)
{
this.name = name;
this.age = age;
this.sex = sex;
}
public static void main(String[] args) {
Friend fr1 = new Friend("Arun");
Friend fr2 = new Friend("Aaron",23);
Friend fr3 = new Friend("Arrun",24,'M');
}
}
package com.codegym.task.task05.task0516;
/*
You can't buy friends
*/
public class Friend {
String name;
int age;
char sex;
public Friend(String name)
{
this.name = name;
}
public Friend(String folder, int age)
{
this.name = name;
this.age = age;
}
public Friend(String folder, int age, char sex)
{
this.name = name;
this.age = age;
this.sex = sex;
}
public static void main(String[] args) {
Friend fr1 = new Friend("Arun");
Friend fr2 = new Friend("Aaron",23);
Friend fr3 = new Friend("Arrun",24,'M');
}
}