@@ -0,0 +1,374 @@
+package com.javarush.task.task06.task0602;%0A%0A/* %0A%D0%9F%D1%83%D1%81%D1%82%D1%8B%D0%B5 %D0%BA%D0%BE%D1%88%D0%BA%D0%B8, %D0%BF%D1%83%D1%81%D1%82%D1%8B%D0%B5 %D0%BF%D1%81%D1%8B%0A*/%0A%0Apublic class Cat %7B%0A    public static void main(String%5B%5D args) %7B%0A%0A    %7D%0A%0A    protected void finalize() throws Throwable%7B%0A        System.out.println(%22Cat was destroyed%22);%0A    %7D%0A%0A%7D%0A%0Aclass Dog %7B%0A    protected void finalize() throws Throwable %7B%0A        System.out.println(%22Dog was destroyed%22);%0A    %7D%0A%7D%0A

Complete task0602