package ru.job4j.professions;

/**.
 * Class Doctor solving part 2 task 3
 * @author Mikhail Vlasov
 * @since 5.7.2017
 * @version 1
 */
public class Doctor extends Profession {
    /**.
     * Document
     */
    private String diploma;

    /**.
     * Constructor
     * @param name of object
     */
    public Doctor(String name) {
        setName(name);
    }

    /**.
     * Healing
     * @param profession of Profession
     * @return String
     */
    public String heal(Profession profession) {
        return "Доктор " + this.getName() + " лечит " + profession.getName();
    }

    /**.
     * Doing sergery
     */
    public void duSergery() { }

    /**.
     * Writing prescription
     * @return String
     */
    public String writePrescription() {
        return "Prescription has written";
    }

    /**.
     * Consulting
     * @param teacher of Teacher
     */
    public void consult(Teacher teacher) { }
}
@@ -521,19 +521,43 @@
 urn 
-%22%D0%94%D0%BE%D0%BA%D1%82%D0%BE%D1%80 %22 +
+String.format(%22%D0%94%D0%BE%D0%BA%D1%82%D0%BE%D1%80 %25s %D0%BB%D0%B5%D1%87%D0%B8%D1%82 %25s%22,
  thi
@@ -571,22 +571,9 @@
 me()
- + %22 %D0%BB%D0%B5%D1%87%D0%B8%D1%82 %22 +
+,
  pro
@@ -589,16 +589,17 @@
 etName()
+)
 ;%0A    %7D%0A

Task 6837