Can someone please please help me how I should solve this??
package com.codegym.task.task05.task0526;
/*
Man and woman
*/
public class Solution {
public static void main(String[] args) {
Man man1 = new Man("raj", 5 ,"coventry");
Man man2 = new Man("raj1", 6 , "covntry1");
Woman woman1 = new Woman("rad", 8 , "leaming");
Woman woman2 = new Woman("rad1", 9, "leaming2");
System.out.println(man1.name + "" + man1.age + "" + man1.address);
System.out.println(man2.name + "" + man2.age + "" + man2.address);
System.out.println(woman1.name + "" + woman1.age + "" + woman1.address);
System.out.println(woman2.name + "" + woman2.age + "" + woman2.address);//write your code here
}
public static class Man
{
String name;
int age;
String address;
public Man(String name, int age, String address)
{
this.name = name;
this.age = age;
this.address = address;
}
}
public static class Woman{
String name;
int age;
String address;
public Woman(String name, int age, String address)
{
this.name = name;
this.age = age;
this.address = address;
}
//write your code here
}
}