@@ -0,0 +1,1199 @@
+package com.javarush.task.task14.task1412;%0A%0A/* %0A%D0%A0%D0%B5%D0%B0%D0%BB%D0%B8%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D1%8C %D0%BC%D0%B5%D1%82%D0%BE%D0%B4 printMainInfo%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) %7B%0A        Object obj = new Circle();%0A        Movable movable = (Movable) obj;%0A        Drawable drawable = new Rectangle();%0A%0A        printMainInfo(drawable);%0A        printMainInfo(movable);%0A    %7D%0A%0A    public static void printMainInfo(Object object) %7B%0A        //%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D1%82%D1%83%D1%82 %D0%B2%D0%B0%D1%88 %D0%BA%D0%BE%D0%B4%0A        if (object instanceof Drawable) %7B%0A            ((Drawable) object).draw();%0A        %7D else if (object instanceof Movable) %7B%0A            ((Movable) object).move();%0A        %7D%0A    %7D%0A%0A    static interface Movable %7B%0A%0A        void move();%0A    %7D%0A%0A    static class Circle implements Movable %7B%0A%0A        public void draw() %7B%0A            System.out.println(%22can be drawn%22);%0A        %7D%0A%0A        public void move() %7B%0A            System.out.println(%22can be moved%22);%0A        %7D%0A%0A    %7D%0A%0A    static interface Drawable %7B%0A        void draw();%0A    %7D%0A%0A    static class Rectangle implements Drawable %7B%0A        public void draw() %7B%0A            System.out.println(%22can be drawn%22);%0A        %7D%0A%0A        public void move() %7B%0A            System.out.println(%22can be moved%22);%0A        %7D%0A    %7D%0A%7D%0A

Complete task1412