From 859d6cf3abe14385870635369d6bb6cca13c1bbe Mon Sep 17 00:00:00 2001 From: NandaMask Date: Sat, 27 Apr 2024 17:10:52 +0330 Subject: [PATCH 1/4] classes are initialized --- .idea/.gitignore | 8 ++++++++ .idea/AP-Workshop6.iml | 11 +++++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ Animal.java | 2 ++ Bird.java | 2 ++ Cheetah.java | 2 ++ Eagle.java | 2 ++ Girafe.java | 2 ++ Hunter.java | 2 ++ Mammal.java | 2 ++ Parrot.java | 2 ++ Prey.java | 2 ++ 14 files changed, 57 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/AP-Workshop6.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 Animal.java create mode 100644 Bird.java create mode 100644 Cheetah.java create mode 100644 Eagle.java create mode 100644 Girafe.java create mode 100644 Hunter.java create mode 100644 Mammal.java create mode 100644 Parrot.java create mode 100644 Prey.java diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/AP-Workshop6.iml b/.idea/AP-Workshop6.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/.idea/AP-Workshop6.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..15cec4b --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8492c7d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Animal.java b/Animal.java new file mode 100644 index 0000000..97b9084 --- /dev/null +++ b/Animal.java @@ -0,0 +1,2 @@ +public class Animal { +} diff --git a/Bird.java b/Bird.java new file mode 100644 index 0000000..adfe262 --- /dev/null +++ b/Bird.java @@ -0,0 +1,2 @@ +public class Bird extends Animal { +} diff --git a/Cheetah.java b/Cheetah.java new file mode 100644 index 0000000..97df305 --- /dev/null +++ b/Cheetah.java @@ -0,0 +1,2 @@ +public class Cheetah extends Mammal implements Hunter{ +} diff --git a/Eagle.java b/Eagle.java new file mode 100644 index 0000000..ff76799 --- /dev/null +++ b/Eagle.java @@ -0,0 +1,2 @@ +public class Eagle extends Bird implements Hunter{ +} diff --git a/Girafe.java b/Girafe.java new file mode 100644 index 0000000..469f413 --- /dev/null +++ b/Girafe.java @@ -0,0 +1,2 @@ +public class Girafe extends Mammal implements Prey{ +} diff --git a/Hunter.java b/Hunter.java new file mode 100644 index 0000000..e7a146b --- /dev/null +++ b/Hunter.java @@ -0,0 +1,2 @@ +public interface Hunter { +} diff --git a/Mammal.java b/Mammal.java new file mode 100644 index 0000000..51314bb --- /dev/null +++ b/Mammal.java @@ -0,0 +1,2 @@ +public class Mammal extends Animal { +} diff --git a/Parrot.java b/Parrot.java new file mode 100644 index 0000000..ca2373a --- /dev/null +++ b/Parrot.java @@ -0,0 +1,2 @@ +public class Parrot extends Bird implements Prey{ +} diff --git a/Prey.java b/Prey.java new file mode 100644 index 0000000..d18f678 --- /dev/null +++ b/Prey.java @@ -0,0 +1,2 @@ +public interface Prey { +} From 96b631a4fb2a957fd77887bb2b8ee3fc9c3986bb Mon Sep 17 00:00:00 2001 From: NandaMask Date: Sat, 27 Apr 2024 17:38:34 +0330 Subject: [PATCH 2/4] request 2 --- Animal.java | 12 +++++++++++- Bird.java | 12 +++++++++++- Cheetah.java | 3 +++ Eagle.java | 3 +++ Girafe.java | 3 +++ Main.java | 18 ++++++++++++++++++ Mammal.java | 11 ++++++++++- Parrot.java | 3 +++ 8 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 Main.java diff --git a/Animal.java b/Animal.java index 97b9084..274fd36 100644 --- a/Animal.java +++ b/Animal.java @@ -1,2 +1,12 @@ -public class Animal { +public abstract class Animal { + protected String name; + protected int age; + protected String info; + public Animal(String name ,int age , String info){ + this.name = name; + this.age = age; + this.info = info; + } + public abstract void show(); + } diff --git a/Bird.java b/Bird.java index adfe262..7a57ca0 100644 --- a/Bird.java +++ b/Bird.java @@ -1,2 +1,12 @@ -public class Bird extends Animal { +public abstract class Bird extends Animal { + protected int height; + public Bird(String name ,int age , String info , int height){ + super(name , age , info); + this.height = height; + } + + @Override + public void show() { + System.out.println("name:" + name +"age:" + age +"height:" + height + "info:" + info); + } } diff --git a/Cheetah.java b/Cheetah.java index 97df305..a40be18 100644 --- a/Cheetah.java +++ b/Cheetah.java @@ -1,2 +1,5 @@ public class Cheetah extends Mammal implements Hunter{ + public Cheetah(String name, int age, String info, int speed) { + super(name, age, info, speed); + } } diff --git a/Eagle.java b/Eagle.java index ff76799..c9c4cd7 100644 --- a/Eagle.java +++ b/Eagle.java @@ -1,2 +1,5 @@ public class Eagle extends Bird implements Hunter{ + public Eagle(String name, int age, String info, int height) { + super(name, age, info, height); + } } diff --git a/Girafe.java b/Girafe.java index 469f413..c4c38ca 100644 --- a/Girafe.java +++ b/Girafe.java @@ -1,2 +1,5 @@ public class Girafe extends Mammal implements Prey{ + public Girafe(String name, int age, String info, int speed) { + super(name, age, info, speed); + } } diff --git a/Main.java b/Main.java new file mode 100644 index 0000000..3fa0fb6 --- /dev/null +++ b/Main.java @@ -0,0 +1,18 @@ +import java.util.ArrayList; + +public class Main { + public static void main(String [] args){ + ArrayList animals = new ArrayList<>(); + Cheetah cheetah1 = new Cheetah("simba" , 7 , "fast as rocket" , 100); + Parrot bird1 = new Parrot("rio" , 2 , "talkative" ,30); + Girafe girafe1 = new Girafe("lucas" , 4 , " tall but shy" , 10); + Eagle eagle1 = new Eagle("max" , 10 , "lives in mountain" , 500 ); + animals.add(cheetah1); + animals.add(bird1); + animals.add(girafe1); + animals.add(eagle1); + for (Animal animal : animals){ + animal.show(); + } + } +} diff --git a/Mammal.java b/Mammal.java index 51314bb..5c85bbe 100644 --- a/Mammal.java +++ b/Mammal.java @@ -1,2 +1,11 @@ -public class Mammal extends Animal { +public abstract class Mammal extends Animal { + protected int speed; + public Mammal(String name ,int age , String info , int speed){ + super(name , age ,info); + this.speed = speed; + } + @Override + public void show() { + System.out.println("name:" + name +"age:" + age +"speed:" + speed + "info:" + info); + } } diff --git a/Parrot.java b/Parrot.java index ca2373a..24d1e39 100644 --- a/Parrot.java +++ b/Parrot.java @@ -1,2 +1,5 @@ public class Parrot extends Bird implements Prey{ + public Parrot(String name, int age, String info, int height) { + super(name, age, info, height); + } } From 543f805fd7f9d86376f3dcc4a572212d93149beb Mon Sep 17 00:00:00 2001 From: NandaMask Date: Sat, 27 Apr 2024 17:55:38 +0330 Subject: [PATCH 3/4] request 3 --- Animal.java | 11 +++++++++++ Bird.java | 2 +- Cheetah.java | 5 +++++ Eagle.java | 5 +++++ Hunter.java | 1 + Main.java | 2 ++ Prey.java | 1 + out/production/AP-Workshop6/.idea/.gitignore | 8 ++++++++ .../AP-Workshop6/.idea/AP-Workshop6.iml | 11 +++++++++++ out/production/AP-Workshop6/.idea/misc.xml | 6 ++++++ out/production/AP-Workshop6/.idea/modules.xml | 8 ++++++++ out/production/AP-Workshop6/.idea/vcs.xml | 6 ++++++ out/production/AP-Workshop6/Animal.class | Bin 0 -> 702 bytes out/production/AP-Workshop6/Bird.class | Bin 0 -> 1197 bytes out/production/AP-Workshop6/Cheetah.class | Bin 0 -> 1180 bytes out/production/AP-Workshop6/Eagle.class | Bin 0 -> 1173 bytes out/production/AP-Workshop6/Girafe.class | Bin 0 -> 385 bytes out/production/AP-Workshop6/Hunter.class | Bin 0 -> 120 bytes out/production/AP-Workshop6/Main.class | Bin 0 -> 1392 bytes out/production/AP-Workshop6/Mammal.class | Bin 0 -> 1194 bytes out/production/AP-Workshop6/Parrot.class | Bin 0 -> 384 bytes out/production/AP-Workshop6/Prey.class | Bin 0 -> 130 bytes out/production/AP-Workshop6/ReadMe.md | 0 23 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 out/production/AP-Workshop6/.idea/.gitignore create mode 100644 out/production/AP-Workshop6/.idea/AP-Workshop6.iml create mode 100644 out/production/AP-Workshop6/.idea/misc.xml create mode 100644 out/production/AP-Workshop6/.idea/modules.xml create mode 100644 out/production/AP-Workshop6/.idea/vcs.xml create mode 100644 out/production/AP-Workshop6/Animal.class create mode 100644 out/production/AP-Workshop6/Bird.class create mode 100644 out/production/AP-Workshop6/Cheetah.class create mode 100644 out/production/AP-Workshop6/Eagle.class create mode 100644 out/production/AP-Workshop6/Girafe.class create mode 100644 out/production/AP-Workshop6/Hunter.class create mode 100644 out/production/AP-Workshop6/Main.class create mode 100644 out/production/AP-Workshop6/Mammal.class create mode 100644 out/production/AP-Workshop6/Parrot.class create mode 100644 out/production/AP-Workshop6/Prey.class create mode 100644 out/production/AP-Workshop6/ReadMe.md diff --git a/Animal.java b/Animal.java index 274fd36..7537834 100644 --- a/Animal.java +++ b/Animal.java @@ -9,4 +9,15 @@ public Animal(String name ,int age , String info){ } public abstract void show(); + public String getName() { + return name; + } + + public int getAge() { + return age; + } + + public String getInfo() { + return info; + } } diff --git a/Bird.java b/Bird.java index 7a57ca0..5570d2e 100644 --- a/Bird.java +++ b/Bird.java @@ -7,6 +7,6 @@ public Bird(String name ,int age , String info , int height){ @Override public void show() { - System.out.println("name:" + name +"age:" + age +"height:" + height + "info:" + info); + System.out.println("name: " + name +" age: " + age +" height: " + height + " info: " + info); } } diff --git a/Cheetah.java b/Cheetah.java index a40be18..e10c853 100644 --- a/Cheetah.java +++ b/Cheetah.java @@ -2,4 +2,9 @@ public class Cheetah extends Mammal implements Hunter{ public Cheetah(String name, int age, String info, int speed) { super(name, age, info, speed); } + + @Override + public void hunt(Prey prey) { + System.out.println(getName() + " hunted " + prey.getName()); + } } diff --git a/Eagle.java b/Eagle.java index c9c4cd7..8dfc2ce 100644 --- a/Eagle.java +++ b/Eagle.java @@ -2,4 +2,9 @@ public class Eagle extends Bird implements Hunter{ public Eagle(String name, int age, String info, int height) { super(name, age, info, height); } + + @Override + public void hunt(Prey prey) { + System.out.println(getName() + " hunted " + prey.getName()); + } } diff --git a/Hunter.java b/Hunter.java index e7a146b..6d8780d 100644 --- a/Hunter.java +++ b/Hunter.java @@ -1,2 +1,3 @@ public interface Hunter { + public void hunt(Prey prey); } diff --git a/Main.java b/Main.java index 3fa0fb6..328eaa1 100644 --- a/Main.java +++ b/Main.java @@ -14,5 +14,7 @@ public static void main(String [] args){ for (Animal animal : animals){ animal.show(); } + cheetah1.hunt(girafe1); + eagle1.hunt(bird1); } } diff --git a/Prey.java b/Prey.java index d18f678..876fa3d 100644 --- a/Prey.java +++ b/Prey.java @@ -1,2 +1,3 @@ public interface Prey { + public String getName(); } diff --git a/out/production/AP-Workshop6/.idea/.gitignore b/out/production/AP-Workshop6/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/out/production/AP-Workshop6/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/out/production/AP-Workshop6/.idea/AP-Workshop6.iml b/out/production/AP-Workshop6/.idea/AP-Workshop6.iml new file mode 100644 index 0000000..b107a2d --- /dev/null +++ b/out/production/AP-Workshop6/.idea/AP-Workshop6.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/out/production/AP-Workshop6/.idea/misc.xml b/out/production/AP-Workshop6/.idea/misc.xml new file mode 100644 index 0000000..15cec4b --- /dev/null +++ b/out/production/AP-Workshop6/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/out/production/AP-Workshop6/.idea/modules.xml b/out/production/AP-Workshop6/.idea/modules.xml new file mode 100644 index 0000000..8492c7d --- /dev/null +++ b/out/production/AP-Workshop6/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/out/production/AP-Workshop6/.idea/vcs.xml b/out/production/AP-Workshop6/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/out/production/AP-Workshop6/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/out/production/AP-Workshop6/Animal.class b/out/production/AP-Workshop6/Animal.class new file mode 100644 index 0000000000000000000000000000000000000000..f21f35c71ad8a267b8e8e5fe4953d6c0dfe632d0 GIT binary patch literal 702 zcmZut$xZ@65Pb~|!!qoP8!mW)G0F!(Oo)jI3Bdz~dxIl18DK+meaG0*DH}&ehs_&oAF90o^ClEr|05=gqlp#A6Pom)ncigxePVJG;5N%0U`qvEM zT73{l3~>Vq6G@o#ukFg2a2U8NW;R2<`^WG5bLozoijg*vL6#rOJ zJu?_%+wW=D#aew^iI$^=wlYkMcY^+o_L}H>%lXK@l}a=j%)L^J^C~SCqQi#4)qyDE zYI7ZFTZ$1d`ik_HsB);AQ!H8^VAjP7hE-W1WnHe2dm}uAGQDMDC?-b~aTrLGN`bOH zLal(0eH>6lle8|=nNn76it5q`bB05j0Mb4}W$mCrQFTYGcNnjf1d>q=rnH0^G^`~U fj&VYWvj3l)df6c7c9KtbD(5zpOFPMDTB7<3f#GJ8 literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/Bird.class b/out/production/AP-Workshop6/Bird.class new file mode 100644 index 0000000000000000000000000000000000000000..c9f3980ce0f0d62f3b5250977faabf67c19e1071 GIT binary patch literal 1197 zcmaJ>?M@Rx6g|@}U0RodAR>ZT6tpcu{lG64MQK8;sUHahfB0)?$L_#(r`ericoSbk z<43{|AHat)-q|*xq#J+C%$>XEo;&Bxo&EFo^f!P_yvQMiv<=I_2r>+rmw{|^pNvfz zNd26lSgarNV_xxj(5md}PzEixHtZ_xXEBPbjhurEa2Tv@88(T>6SC!L23E@=k8v9l z4lZJnVPb&xB+{bIkXBtnPWRZQs=TLcnsN%>b`AX{2h+Gr+yQS3hRNY$7}OO9v*rY8 z-V$a%=U_gLlEEi6NwOClTt|Unrp=E;RRs;MKS=G76=@#mh+!j1bdu`f6Xb9MH*G9A zSjH`esaWNCEev+YDDwjnn~ z&qHbUeW#^8NfI-4b3raeN1pmj)hZgQ+^*_|4Y4Clc-A1+i~zc=ZKZUiL*98Kw5OWU zcm@x0SjR&fk4!xuGc29ms0@zPk?8kJuf#jNp;dUo@MTb1AJ`*(#e=3VqNTc0N8OG) zT-*WAxxl@Xj!1xi9KgRjI1~--mIhpXiYoX0U8#jTil+<((_0$_R-o=NORs;8W!i^U z2B#JTBCPs6ibP~%lVN#Cd6FO-^qv;}4>cDPtG5=ZbyL)>bVKGvk(DBQ1h;7}(#|9Q z2(9_@%KYjtu=2F^1NPS#S2BL2X|`Y!Y77~aX}8{szzXir&S2<05udT>&BXcg=C#DJ z`8cmd-&e8L&-$7e41WF_#>(F@MPr7BP2=h*t^q%>cyBaW*r%@qa Z3U_gj)=~O)pT-kx#4!vmo?#2K{{Ub19;^TW literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/Cheetah.class b/out/production/AP-Workshop6/Cheetah.class new file mode 100644 index 0000000000000000000000000000000000000000..22fa1cecd99b0aadda8bda88ce33a9db438a9604 GIT binary patch literal 1180 zcmaJ>T~8B16g@)=+b*kMp+yw2C};~p{Xj(*MQK7HDM$jT5573GW4o|B)9g-3_$U4i zeZa_rKfoVlywh&9*v5x;?%cU^&OK*l_UEsQ9{|>|X=4Zp3rPpV7-1OMDLU!LgkpB@{-SGqjaD{Pd4100jXj&jTF)rYzL!o7{+_Hokdy%3<=fN4B75(PnGrw zO%tZzfotO`#w?6GxP}aaRc;EQd6S}s(0e=(43mXoKk+Cg&Au!{az7Mj8Im>S;5w!m zrUHH<%1YL_e(&ifMUm!GM+|ENMD;@tV6$-(GZt<+n8j^|iH^q0N~q(O(dA2$I)JBG zwJ=8pZ?~luA+=prbrLsL@ub*m2S*}2 zjAA<6O{H|CL*CjIx~b~X*a)85c!uW|){Olx80P<808gH(6A@pZ?ul&inpPq4eeU%r zF6@GCb6NLAG+$Bbq}_7+_4Q;fZ9F_{i2>ywdg|XD9gCWFdyhDVD0AOG@U(DKAaiY& zH%^Iqo{`SNSuE|j?kU$zq%u}@5t;7QE(afyhM}crmRK#MZ+Qt&)5}n)w z$|Y%i87nc{9<3P6+*eqO=eV-;9TN-}$N}fL@h@`iU#x$dq%%sG_skT4T?M5{x1 Yj3+dvD6>kxm-H1fJu$q(2Hs-&H~Qio>;M1& literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/Eagle.class b/out/production/AP-Workshop6/Eagle.class new file mode 100644 index 0000000000000000000000000000000000000000..b8f726bf91a2af94feaedbacbd9b1bcbc9eda51b GIT binary patch literal 1173 zcmaJ>+foxj5IsW{Hd&%zAVCxr6f^-LUQp4+8!0KMibxeyeDK8~8Iys{Olo&R6@TJy z=mVBK_yK;DWzQz1!K8fHot`t@efo6o?9X3kKLD&_!^02~E}S%mF~Z<%$gsvRvM!Z0 zFBl5>@*zLw#el1NanFQO)&1=OP@$4S5-As68ly-vjQ50{L`F0j61r^|vYlwDi@TJ~ zP)@;{zK4q#b1|OAC1e`Ux(%VOjUB#?rGd9qeJo>;(b+S&6v$WtC`6|fk4dsreY5o31= zbLe~-D_yo7IL<^phtkUI;k z@dIded-H6NJrD=1(ecT_X-B?8ypefmI*k?Z>5^C{I$up<11&Pw-^3Pk9BN~`nvSqT P&9Af$HOc-inTNd}EBi=P literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/Hunter.class b/out/production/AP-Workshop6/Hunter.class new file mode 100644 index 0000000000000000000000000000000000000000..f5d1af69db175e43a9cca8fef7889be92471a093 GIT binary patch literal 120 zcmX^0Z`VEs1_m1jPId++Mg}&I(!7$?B6bEAMh1bb#Ii*FoW#6zegCAa)Z`LI29^w< zG$RA2hEG6IYNfSi7$XB$aDHh~a;jTqPAVehV~%rBUoyh9ojCOR*CXUIxjS7?X!!>=+yrTZs?}i3uSd{N}4a^FRh05Dgq5IG=kwIGG83tZ+eRa<;mjJW=8@KN3rU>E zB4bsvDKLFp!_d2OVMoVZNa7-j0)`tpz6!g(z)Zd{loy#;ImFB3xP(_EUQOaPye?op z_4z1-_O?{8={(}a@IH1lV>yX8@s>cW6TzpBav!_JvP7A7taaSB@=TQQb`q=lzGFeF z`-Q%W%So)^T>>qtq?>tr%Xjw6g{qc&S>g(}HmIJ{dbjBaOxbS7+3dCJj(=0tJtCIf zZ78p*d{_S;g0ZmW20Yr%yFDtMoNWB33z5t79o;|yZo40Eb2aN(X`M}(edJ290p@Gg^C{DMF)jY=W1$pZTslDh z*5ZX|%*KXOJem%$R7zwMKjUSAA8=Z)-Vpc=rIO6b1FZb`Zq_&Z(tlBQ{f#ZBG+H5Pr73_S)lU5kx=`MM2vl)E9i~;cF9OO;HmFe(=-MuJqvUw&`s#{1g9% z#+QT-{s4cJarUkWCB67z_hx2ip4n%1=KlOW{S9CfFD#^xHeuMvAj^<_8Mr?8NZ51( zS3P4Wm70hAm{&a>98`By&kYWo#;B>hmq!kH6PArJ*aWc6{Rk-&c7;82Um4S3Kb7j$WTjSokV-|1{SX4hKXex zE4axp6|p?eg~9AzV|;*efYjsCvA+EmTLg z!(tZqEo|U{iHEwTj~JHEUeyhb<&hXPO-oU0C}CR+%<_!2BBdm9-sd+6|cGHI6JQq;13zSjBD9v=7Y^;c1EHCCXROlM=-i zqPzy3uVHoIDiStL1liszX72bEPHa{vGU literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/Parrot.class b/out/production/AP-Workshop6/Parrot.class new file mode 100644 index 0000000000000000000000000000000000000000..8b7fd2f7457434f9e0c113893bc60f315300563d GIT binary patch literal 384 zcmZusu}%U(6r8nCdQkI!{ z7HA~vpaK0>Ei3h(e+YysI_$zH;20547TDnZ z^!l^;Hi;hC*I47zv!nB_e1~`=3efT#D-hBpvB~aot;81EM1H=F9p?D1gWXCUV~<=| Nab0qf^L?TK2S4D$NM!&3 literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/Prey.class b/out/production/AP-Workshop6/Prey.class new file mode 100644 index 0000000000000000000000000000000000000000..970f10b61a417bb0be49336a437dbf8706e377c6 GIT binary patch literal 130 zcmX^0Z`VEs1_m1jPId++Mh2FEqSQ)u1{OvJfvm)`ME#t^ymWp4q^#8B5=I90^wbi+ z#N1Ry1`!QSAB22xNl|8Ax-}yMS8#r5QF5wVW)4sdC&(y0kSaDt21W*Epe+mxj6joF P8Q4H926iCH#J~Xnv=|(` literal 0 HcmV?d00001 diff --git a/out/production/AP-Workshop6/ReadMe.md b/out/production/AP-Workshop6/ReadMe.md new file mode 100644 index 0000000..e69de29 From 64991a4e716611b323eee441ef5194ae459e1279 Mon Sep 17 00:00:00 2001 From: NandaMask Date: Sat, 27 Apr 2024 18:00:37 +0330 Subject: [PATCH 4/4] show method was changed --- Bird.java | 2 +- Mammal.java | 2 +- out/production/AP-Workshop6/Bird.class | Bin 1197 -> 1198 bytes out/production/AP-Workshop6/Mammal.class | Bin 1194 -> 1201 bytes 4 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bird.java b/Bird.java index 5570d2e..c1c6eca 100644 --- a/Bird.java +++ b/Bird.java @@ -7,6 +7,6 @@ public Bird(String name ,int age , String info , int height){ @Override public void show() { - System.out.println("name: " + name +" age: " + age +" height: " + height + " info: " + info); + System.out.println(" name: " + name +" age: " + age +" height: " + height + " info: " + info); } } diff --git a/Mammal.java b/Mammal.java index 5c85bbe..e506002 100644 --- a/Mammal.java +++ b/Mammal.java @@ -6,6 +6,6 @@ public Mammal(String name ,int age , String info , int speed){ } @Override public void show() { - System.out.println("name:" + name +"age:" + age +"speed:" + speed + "info:" + info); + System.out.println(" name: " + name +" age:" + age +" speed: " + speed + " info: " + info); } } diff --git a/out/production/AP-Workshop6/Bird.class b/out/production/AP-Workshop6/Bird.class index c9f3980ce0f0d62f3b5250977faabf67c19e1071..4db9bea26c9e12b0ee23430ac79dbd0aa5ef170c 100644 GIT binary patch delta 14 VcmZ3>xsG##G&7^(W@+Y0i~t~21Hu3R delta 12 TcmZ3-xt4Q-H1lQ|=1GhI8x{kh diff --git a/out/production/AP-Workshop6/Mammal.class b/out/production/AP-Workshop6/Mammal.class index d8ae249ef7f2b859d5606c7b0f98fd3da81e29e3..fb236098808584b95d08e753339aedc41c900473 100644 GIT binary patch delta 44 xcmZ3*xsh{&0<*llLSABSs+9txLSlNV6{A9NL27CWh?|+0mT#r7*@C%<5dar83^o7& delta 37 rcmdnUxr%dx0<(lfUSe*l6=PyLkSH!lO--?4%*;#6x7uvaT*L?f*s2Rp