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; System.out.println(name); } public friend(String name, int age) { this.name = name; this.age = age; System.out.println(name + "," + age); } public friend(String name, int age, char sex) { this.name = name; this.age = age; this.sex = sex; System.out.println(name + "," + age + "," + sex); }//write your code here public static void main(String[] args) { Friend frnd1 = new Friend(); Friend frnd2 = new Friend(); Friend frnd3 = new Friend(); frnd1.name("Arun"); frnd2.name("Aaron",23); frnd3.name("Arrun",24,'M'); } }