public class Main {
    public static void main(String[] args) {

        Drug drug = new Drug();
        System.out.println("Вывод: " + "{" + drug.getName() + ", " + drug.getIll() + ", " + Drug.cost + ", " + Drug.wish + "}");

        Patient patient = new Patient();
        System.out.println("Вывод: " + "{" + patient.getName() + ", " + patient.getSurname() + ", " + patient.getAge() + ", " + Patient.height + "," + Patient.status +  "}");

        Shedule shedule = new Shedule();
        System.out.println("Вывод: " + "{" + shedule.getDrug() + ", " + shedule.getPatient() + ", " + shedule.getAdress() + ", " + shedule.getTime() + ", " + Shedule.weather + ", " + Shedule.floor + "}");

        MedicalPreparation preparation = new MedicalPreparation(drug, patient);
        System.out.println("Вывод: " + "{" + preparation.getName() + ", " + preparation.getIll() + "," + preparation.typeOfProduct + ", " + MedicalPreparation.weightBottle + ", " + MedicalPreparation.count +"}");
    }
}public class MedicalPreparation extends Drug {
    String typeOfProduct = "Таблетка";
    private String name;
    static double weightBottle;
    static int count;

    static {
        weightBottle = 30.03;
        count = 25;
    }

    {
        name = "Парацетамол";
    }

    public MedicalPreparation(String name, String ill, String typeOfProduct, double wB, int ct) {
        super(name, ill, cost, wish);
        this.typeOfProduct = typeOfProduct;
        this.name = name;
        weightBottle = wB;
        count = ct;
    }

    public MedicalPreparation(Drug drug, Patient patient) {

    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    MedicalPreparation() {

    }
}public class Patient {

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    private String name;
    private String surname = "Иванов";
    private int age = 18;
    static double height;
    static String status;

    {
        name = "Иван";
    }

    static {
        status = " married";
        height = 180.5;
    }

    public Patient(String name, String surname, int age, double h, boolean hP) {
        this.name = name;
        this.surname = surname;
        this.age = age;
        height = h;
    }

    public Patient() {

    }
}
public class Drug {
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIll() {
        return ill;
    }

    public void setIll(String ill) {
        this.ill = ill;
    }

    private String name;
    private String ill = "Головная боль";
    static double cost;
    static boolean wish;

    {
        name = "Пенициллин";
    }

    static {
        cost = 1440.1;
        wish = true;
    }

    public Drug(String name, String ill, double c, boolean w) {
        this.name = name;
        this.ill = ill;
        cost = c;
        wish = w;
    }

    public Drug() {

    }

}
public class Shedule {
    public Drug getDrug() {
        return drug;
    }

    public void setDrug(Drug drug) {
        this.drug = drug;
    }

    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    private Drug drug;
    private Patient patient;
    private String adress = "City Centre";
    private int time;
    static String weather;
    static int floor;

    {
        time = 20;
    }

    static {
        weather = "Winter";
        floor = 5;
    }

    public Shedule(Drug drug, Patient patient, String adress, int time, String w, int fl) {
        this.drug = drug;
        this.patient = patient;
        this.adress = adress;
        this.time = time;
        weather = w;
        floor = fl;
    }

    public Shedule() {

    }

}
Сколько типов полей данных обьявлено в этом коде?