package com.javarush.task.task12.task1228; //Simon Peter said to him, "Lord, where are you going?" Jesus answered, "Where I am going, you can't follow now, //but you will follow afterwards." (John 13:36) /* ÐнÑеÑÑейÑÑ Ðº клаÑÑÑ Human */ public class Solution { public static void main(String[] args) { Human human = new Human(); System.out.println(human); } public static interface Worker { public void workLazy(); } public static interface Businessman { public void workHard(); } public static interface Secretary { public void workLazy(); } public static interface Miner { public void workVeryHard(); } public static class Human implements Worker, Secretary, Businessman { public void workHard() { } public void workLazy() { } } } /* ÐнÑеÑÑейÑÑ Ðº клаÑÑÑ Human ÐÐ¾Ð±Ð°Ð²Ñ ÐºÐ°Ðº можно болÑÑе инÑеÑÑейÑов к клаÑÑÑ Human, но ÑÑÐ¾Ð±Ñ Ð¾Ð½ не ÑÑал абÑÑÑакÑнÑм клаÑÑом. ÐобавлÑÑÑ Ð¼ÐµÑÐ¾Ð´Ñ Ð² клаÑÑ Human запÑеÑаеÑÑÑ. ТÑебованиÑ: 1.âÐлаÑÑ Solution должен ÑодеÑжаÑÑ Ð¸Ð½ÑеÑÑÐµÐ¹Ñ Worker Ñ Ð¼ÐµÑодом void workLazy(). 2.âÐлаÑÑ Solution должен ÑодеÑжаÑÑ Ð¸Ð½ÑеÑÑÐµÐ¹Ñ Businessman Ñ Ð¼ÐµÑодом void workHard(). 3.âÐлаÑÑ Solution должен ÑодеÑжаÑÑ Ð¸Ð½ÑеÑÑÐµÐ¹Ñ Secretary Ñ Ð¼ÐµÑодом void workLazy(). 4.âÐлаÑÑ Solution должен ÑодеÑжаÑÑ Ð¸Ð½ÑеÑÑÐµÐ¹Ñ Miner Ñ Ð¼ÐµÑодом void workVeryHard(). 5.âÐлаÑÑ Solution должен ÑодеÑжаÑÑ ÐºÐ»Ð°ÑÑ Human Ñ Ð¼ÐµÑодами: void workHard() и void workLazy(). 6.âÐлаÑÑ Human должен ÑеализовÑваÑÑ ÑÑи инÑеÑÑейÑа. package com.javarush.task.task12.task1228; ÐнÑеÑÑейÑÑ Ðº клаÑÑÑ Human public class Solution { public static void main(String[] args) { Human human = new Human(); System.out.println(human); } public static interface Worker { public void workLazy(); } public static interface Businessman { public void workHard(); } public static interface Secretary { public void workLazy(); } public static interface Miner { public void workVeryHard(); } public static class Human { public void workHard() { } public void workLazy() { } } } */