public class Student {
Integer id;
Map<String,Integer> marks;
List<Address> addresses;
public Student(Integer id, Map<String, Integer> marks, List<Address> addresses) {
this.id = id;
this.marks = marks;
this.addresses = addresses;
}
}
class Address {
String addrType;
Integer houseNo;
String streetName;
String countryName;
House house;
public Address(String addrType, Integer houseNo, String streetName, String countryName, House house) {
this.addrType = addrType;
this.houseNo = houseNo;
this.streetName = streetName;
this.countryName = countryName;
this.house = house;
}
}
class House {
Integer noOfRooms;
String houseType;
Integer noOfWindows;
public House(Integer noOfRooms, String houseType, Integer noOfWindows) {
this.noOfRooms = noOfRooms;
this.houseType = houseType;
this.noOfWindows = noOfWindows;
}
}