package ru.job4j.Profession;


public class Doctor extends Profession {
    public Doctor(String name, int diplom, int experience) {
        super(name, diplom, experience);
    }

    public Table operate(Doctor doctor, Pacient pacient, Table table) {
        System.out.println("Доктор " + doctor.name + " оперирует на" + table + " " + pacient.name);
        return table;
    }

    public Table heal(Doctor doctor, Pacient pacient, Table table) {
        System.out.println("Доктор " + doctor.name + " лечит на " + table + " " + pacient.name);
        return table;
    }

    public Table tellJokes(Doctor doctor, Pacient pacient, Table table) {
        System.out.println("Доктор " + doctor.name + " шутит с " + pacient.name + " на " + table);
        return table;
    }

    public Wine drink(Doctor doctor, Pacient pacient, Wine wine) {
        System.out.println("Доктор " + doctor.name + " выпивает с " + pacient.name + " " + wine);
        return wine;
    }
}
@@ -255,33 +255,39 @@
        S
-ystem.out.println
+tring s = String.format
 (%22%D0%94%D0%BE%D0%BA%D1%82%D0%BE%D1%80
@@ -319,16 +319,17 @@
 %D0%B8%D1%80%D1%83%D0%B5%D1%82 %D0%BD%D0%B0
+ 
 %22 + tabl
@@ -321,32 +321,37 @@
 %D1%83%D0%B5%D1%82 %D0%BD%D0%B0 %22 + table
+.name
  + %22 %22 + pacient
@@ -350,32 +350,63 @@
  pacient.name);%0A
+        System.out.println(s);%0A
         return t
@@ -496,33 +496,39 @@
        S
-ystem.out.println
+tring s = String.format
 (%22%D0%94%D0%BE%D0%BA%D1%82%D0%BE%D1%80
@@ -566,16 +566,21 @@
  + table
+.name
  + %22 %22 +
@@ -587,32 +587,63 @@
  pacient.name);%0A
+        System.out.println(s);%0A
         return t
@@ -738,33 +738,39 @@
        S
-ystem.out.println
+tring s = String.format
 (%22%D0%94%D0%BE%D0%BA%D1%82%D0%BE%D1%80
@@ -830,24 +830,55 @@
 %22 + table);%0A
+        System.out.println(s);%0A
         retu
@@ -970,33 +970,39 @@
        S
-ystem.out.println
+tring s = String.format
 (%22%D0%94%D0%BE%D0%BA%D1%82%D0%BE%D1%80
@@ -1061,24 +1061,55 @@
  %22 + wine);%0A
+        System.out.println(s);%0A
         retu

add chapter_002 task Professional