@@ -0,0 +1,572 @@
+package com.javarush.task.task12.task1231;%0A%0A/* %0A%D0%9D%D0%B5%D0%BD%D1%83%D0%B6%D0%BD%D1%8B%D0%B5 %D0%B0%D0%B1%D1%81%D1%82%D1%80%D0%B0%D0%BA%D1%86%D0%B8%D0%B8%0A*/%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Horse horse = new Pegas();%0A        horse.run();%0A    %7D%0A%0A    public static interface Fly %7B%0A        public abstract void fly();%0A    %7D%0A%0A    public static class Horse %7B%0A        public void run() %7B%0A%0A        %7D%0A    %7D%0A%0A    public static class Pegas extends Horse implements Fly %7B%0A        public void fly() %7B%0A%0A        %7D%0A    %7D%0A%0A    public static abstract class SwimPegas extends Pegas %7B%0A        public abstract void swim();%0A    %7D%0A%0A%7D%0A

Complete task1231