From 538d2f83b4a85ee3ba8c1cd2f591ad90d2d32b0e Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Wed, 20 Nov 2024 13:54:56 +0100 Subject: [PATCH] steiner --- .../CO2-Daten-Projekt-V2/bin/App.class | Bin 7223 -> 7215 bytes .../Steiner/CO2-Daten-Projekt-V2/src/App.java | 9 ++-- .../theorieVererbung/.vscode/settings.json | 7 +++ Code/Steiner/theorieVererbung/README.md | 18 ++++++++ Code/Steiner/theorieVererbung/bin/App.class | Bin 0 -> 751 bytes Code/Steiner/theorieVererbung/bin/EBike.class | Bin 0 -> 1453 bytes .../theorieVererbung/bin/Fahrrad.class | Bin 0 -> 1925 bytes Code/Steiner/theorieVererbung/src/App.class | Bin 0 -> 584 bytes Code/Steiner/theorieVererbung/src/App.java | 12 +++++ Code/Steiner/theorieVererbung/src/EBike.class | Bin 0 -> 1228 bytes Code/Steiner/theorieVererbung/src/EBike.java | 24 ++++++++++ .../theorieVererbung/src/Fahrrad.class | Bin 0 -> 1662 bytes .../Steiner/theorieVererbung/src/Fahrrad.java | 43 ++++++++++++++++++ .../vererbungTier/.vscode/settings.json | 7 +++ Code/Steiner/vererbungTier/README.md | 18 ++++++++ Code/Steiner/vererbungTier/bin/App.class | Bin 0 -> 600 bytes Code/Steiner/vererbungTier/bin/Hund.class | Bin 0 -> 952 bytes Code/Steiner/vererbungTier/bin/Katze.class | Bin 0 -> 956 bytes Code/Steiner/vererbungTier/bin/Tier.class | Bin 0 -> 998 bytes Code/Steiner/vererbungTier/src/App.class | Bin 0 -> 444 bytes Code/Steiner/vererbungTier/src/App.java | 13 ++++++ Code/Steiner/vererbungTier/src/Hund.class | Bin 0 -> 869 bytes Code/Steiner/vererbungTier/src/Hund.java | 12 +++++ Code/Steiner/vererbungTier/src/Katze.class | Bin 0 -> 872 bytes Code/Steiner/vererbungTier/src/Katze.java | 11 +++++ Code/Steiner/vererbungTier/src/Tier.class | Bin 0 -> 917 bytes Code/Steiner/vererbungTier/src/Tier.java | 14 ++++++ 27 files changed, 182 insertions(+), 6 deletions(-) create mode 100644 Code/Steiner/theorieVererbung/.vscode/settings.json create mode 100644 Code/Steiner/theorieVererbung/README.md create mode 100644 Code/Steiner/theorieVererbung/bin/App.class create mode 100644 Code/Steiner/theorieVererbung/bin/EBike.class create mode 100644 Code/Steiner/theorieVererbung/bin/Fahrrad.class create mode 100644 Code/Steiner/theorieVererbung/src/App.class create mode 100644 Code/Steiner/theorieVererbung/src/App.java create mode 100644 Code/Steiner/theorieVererbung/src/EBike.class create mode 100644 Code/Steiner/theorieVererbung/src/EBike.java create mode 100644 Code/Steiner/theorieVererbung/src/Fahrrad.class create mode 100644 Code/Steiner/theorieVererbung/src/Fahrrad.java create mode 100644 Code/Steiner/vererbungTier/.vscode/settings.json create mode 100644 Code/Steiner/vererbungTier/README.md create mode 100644 Code/Steiner/vererbungTier/bin/App.class create mode 100644 Code/Steiner/vererbungTier/bin/Hund.class create mode 100644 Code/Steiner/vererbungTier/bin/Katze.class create mode 100644 Code/Steiner/vererbungTier/bin/Tier.class create mode 100644 Code/Steiner/vererbungTier/src/App.class create mode 100644 Code/Steiner/vererbungTier/src/App.java create mode 100644 Code/Steiner/vererbungTier/src/Hund.class create mode 100644 Code/Steiner/vererbungTier/src/Hund.java create mode 100644 Code/Steiner/vererbungTier/src/Katze.class create mode 100644 Code/Steiner/vererbungTier/src/Katze.java create mode 100644 Code/Steiner/vererbungTier/src/Tier.class create mode 100644 Code/Steiner/vererbungTier/src/Tier.java diff --git a/Code/Steiner/CO2-Daten-Projekt-V2/bin/App.class b/Code/Steiner/CO2-Daten-Projekt-V2/bin/App.class index d32077e6087db2f09836c3b5423f03a817741143..333fa4d83db1be1e8e43a4f226c3225d348ed491 100644 GIT binary patch delta 704 zcmaKq*-n#D6otQEIv|P)w$MRvh!|{*QHfHC7&X<9*lMULMjUa7K}AV$z{C+#6C;jC z92!Sdss)7#mNveF*WPgD6ZizU3Kx1|y!ijKv(H&;ud~(}4-JP#B2KGiH0rdK&QDOp zOyF@K&kc)ciiA1p3Rtb?p37&2P1;pe>q}AXEiNC((x1eUqAZx>Ly8hDLn(?@?OBY`lm5haSFh(&pYB(6+{RHNxHq-7pe)R#td<*2R} zVHP{gkBYv=W(kdH$}U|uu5JtE>}CObSVF5T-AjmlY+yfO4zi6y+Bu?5Ty`BZ>B@|| zUG|)09;c|}vd8M#l zi}Q^*`&q?XS^Q29BgJ|K^e{fMg|u89)bki(JD=F8IAV$>u5b?UUh$9Vc3IQz@3Nw1 H!r%HEy+(kY delta 730 zcmZ9KSx-|@6otRb&|5(ip@l+4alnv59K)ayqeh4mGDHLkqJR-hz=>!SO{%GiMgy87 zYO0BdN)amsQK0cJ_~46A#^2yiz(qkre7I-toW1ut>#n^brPHP3hi&V?WTl;ulHN-^ zOMvITC;^Mg5WVKK%V#y2epj|tVMbj!K5vNJEN9yA6hlEAA<_$G7^x4DtQb~|FO1S< z5uCkZe!I5%18n0iMLeLGKJs}+8MS(1Kla>1L|CQhqK9!Nu*l*vpO_Sp)tu)uP7=uD zEMJr*Qa~G1${g(G2-BLgnbG`GP0pj`Dt7BD!!b(|X3(9VV9#QkZ*GsjNNsbCwr_@L zy)&#djvAdwiU>22Ju!Ckc(&M0#HwR_&|seO;spq23?en@e~fZrR4l@9{=@jnroSMC z3m|ceC^%xw4lWvvGY>OLQmQ0HwSKvZWNOU!jDfPFB3ma}j!A|F-5w{6Mpn|qT24sn zW=c89PEN6pR*`8_#~D={Xs5#rWlp#|CEGbtC2%GeCG;gW&}BM2tt+nTrE9A6;Nd#C z+%P{q7uNXYikmFs7TE-Jdz_!h9>tcWh=@rU^;vQMU75s|>T3kCZbe+eA1d et5j(*wK7VbEYi#fEiywpQPbk>wyMn!Z{r_qEroyp diff --git a/Code/Steiner/CO2-Daten-Projekt-V2/src/App.java b/Code/Steiner/CO2-Daten-Projekt-V2/src/App.java index 5222634..319e3e4 100644 --- a/Code/Steiner/CO2-Daten-Projekt-V2/src/App.java +++ b/Code/Steiner/CO2-Daten-Projekt-V2/src/App.java @@ -60,18 +60,15 @@ public class App { } } - private static int calculateFiveMinuteBreakPoints(Co2Data data) { + private static void calculateFiveMinuteBreakPoints(Co2Data data) { calculateBonusPoints(data); - return 5; } - private static int calculateLongerBreakPoints(Co2Data data) { + private static void calculateLongerBreakPoints(Co2Data data) { calculateBonusPoints(data); - return 10; } - private static int calculateBonusPoints(Co2Data data) { - return 5; + private static void calculateBonusPoints(Co2Data data) { } // #region Sorting Printing diff --git a/Code/Steiner/theorieVererbung/.vscode/settings.json b/Code/Steiner/theorieVererbung/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/theorieVererbung/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/theorieVererbung/README.md b/Code/Steiner/theorieVererbung/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/theorieVererbung/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/theorieVererbung/bin/App.class b/Code/Steiner/theorieVererbung/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..d3dbf59027ff2188f74cfeba83d12d819189a081 GIT binary patch literal 751 zcmZvZ+ip@p6o&tS4I3!76lm+Ir7fxDP)j{sRZXkXhPc%W8j_}0v+1xIgxO>tj8EW0 z_!izkViRNHjq#DZFs=b27xre>toc{g_pdd-{(Sug;2EBnh%iKtheHzvL#D?+@LHcM zr}ob7iFUvce=3y>o>Nh&++r|Zx|bq_D3WQ!5NBAjq!Mq#fi1iQoP~%m(rEAvH*wCY_@X&X-EgGuh9*3RR z1b6$w#3psFzmV@m0^3A9>;4!GLO*`=vp2&Oa8F})8E#&SX=qLX>l#)`qpD$x=kj@p*3+!uc@XRdTntc z^}i%&_4|5{*aCg$#CwEp^o?|yl-DRSim}QVi7#}C&<-(?LBayv)6)WqHz-SD5ld8+ zp}RrK@}$itI(7SlE9B0zD@Gn`W8AW;Biy}0;XJz)%cHoA-(&2&*&CrmLYd;;oVYRR w6Q%A3vcxY^zDu+!`Kgf)?PPPxzek7ln5UG1)6M=@Bjb+ literal 0 HcmV?d00001 diff --git a/Code/Steiner/theorieVererbung/bin/EBike.class b/Code/Steiner/theorieVererbung/bin/EBike.class new file mode 100644 index 0000000000000000000000000000000000000000..a1720da24e48a4fdce86962d7357e1e4154d8e42 GIT binary patch literal 1453 zcmaJ=U31e$6g}(MR#26M1OiDDAZbFe&4+=~LNQ;7Lx{mC3}M0pPa9{kg=MWrS~HV> z(jU>6c7V?Czz^U@F`Sh&#le|ANV>Xv?%s3G-u?XL<0k-j@z_C5pzv_r?nWyndp?SX-_vq?&VBcCaLHe2B_HY*f#~Pgo&J4`}0TYMigD&*++=cS`nZ zF1b%M-RbbFL}6(D=GF_Dwzy7W_aXRJzT?e zo=H!3Rb7WIXuFQG8gEhnu*?qv~6gK}g|8 zjDejOcSjGRmfG~KlWuabSL}W?VqI$!n@IMzmFejH*yYIHcfk2u{pPVBzSUio4Ph#2 zQ?`tb4y@J(0)GxS&d}+GTQb}aRJ_{Mx;yCCMkNkq4i&yQ=&K{(uZHkX_uiM&Q#hT}P9_}+T%W^y*0sv7#TP2?F!2|I zv{^Apx=9l+1!PU=B^H>ml95;5!-kXXR^JXlddJQ z_z%ujK46v41wI!ouaBq#AMndJGiGQWD0Yf+=lES<58El_x|nqu!|%-Ha2qv#tW036g>@y5qM-FA!NymGO{HZ@Pf0)#!(`pU=tzRRdUG>erlivV`iaddQ_!+ zNj@S~St@d>^pFq8N2PLmW(u)64@_Tr?mhSPIk(}Te=q(9@GV|yNHA!1-t#=((U4-u zz2~RAVsWQidDVI^+LB?;=3ZYgEH^LT9ZAo0x>be+?n$#REGMvS;W4lV6%0IK`V{Xo zq@S9ODR&vJ6{pJ^`=w)sRL$*(ERtB%aRoVsWU+Ld0X5VyhqQ`TbZD4Y(W;INvJ8t& z(-AKNyCu9gyk&*-+%~t4xo4{H@n%Z)6q8IdJ|i)n?+SSsooJ<4nkGdV{xG93gSFzE zBaprElM`z?dyZ-+UZjc*RigU7j)b99l18p=CkL+MyOzkH zgnJswW9A&4`BK`~-P?nn}-SZquyu|GqdEI!AV8opr2htn|LO~+T*potnN0+vIJ1G_6)fzy319MkuO zvrHa7R&<^)?938(ng&Dm$PK)Q5b>xvuo3#|MW(_S}x2#dp}#@IAxU z<-D5CsoNKoXlx?|>bxyo?@V!d#_;nfmpD5De8HWLCH$?X>-K{|b(-JE&RF4_vw@hA z{%#~cx?&=5453}6XP(g3=v|q1sUGXNPOFMk zUlvBHb0UmX?b&(>QMCA5Ih$w3mk-NynSar%)MArU5 zk=)5Ehv-wdz(e2zKASw|HaWL5!f$Qp*w;f$<(R_EMVLz$_+}+Y&zXa{jOk`Z%QTJ#Y0yF zr`$a!#29j^7#7PPn*;utSI@cfs;wxH%6p}S&cT=sr;|o#=iFZkjJ6NUC~fIzaICF$+xeqF8^22(2`6%^n@EL??@;a zhC*Qj8Tt?UNr362QOr}fN|{kkZBM|isGxlm&A%WW4U1SJiT?Bq7Lt^AuaRiyl13iJ z1ZJ}`hII|QotsJJ;bie^g7nGG7!Qb;qdY&Ix<(T~Gv;8B1rr78OSGdx7ov(;EE8+c M=125CraFO@KM literal 0 HcmV?d00001 diff --git a/Code/Steiner/theorieVererbung/src/App.java b/Code/Steiner/theorieVererbung/src/App.java new file mode 100644 index 0000000..d60e820 --- /dev/null +++ b/Code/Steiner/theorieVererbung/src/App.java @@ -0,0 +1,12 @@ +public class App { + public static void main(String[] args) throws Exception { + Fahrrad meinfahrrad = new Fahrrad("Scott", 1, 8500); + meinfahrrad.ausgabeInfoAufKonsole(); + + EBike meinEbike = new EBike("Thömus", 2, 12500, 250); + meinEbike.ausgabeInfoAufKonsole(); + + meinfahrrad.umgebungGenissen(); + meinEbike.umgebungGenissen(); + } +} \ No newline at end of file diff --git a/Code/Steiner/theorieVererbung/src/EBike.class b/Code/Steiner/theorieVererbung/src/EBike.class new file mode 100644 index 0000000000000000000000000000000000000000..c7204ffc51fb21f1623e347c2a13ce74e136e9ef GIT binary patch literal 1228 zcmaJ>+fo`q5Iuvy;${VJc-P=90gRHniI|IGtWd$kDlL7;(*Pr`EIZWhtX2L=J|Ztk zC8o-Ud_X=bmEMJl7^pl<&rDDE>C;4w3_wJoNsOq zQ_!N0B`j;Wqv0+?+!Cg%JiAu3kGWC|tjG}EG;LG8WSB^o&iFacS=_GW4wPfswR~}> zm^oqy7i3j1Bub_&-g}L*a1MFdBF|7wsM0^6ed!Fr4!PYY;dFqOY!6=bx=?BttDq`34UHY4Cvo6+rUIqq`HgF4uhKzwMRt((3uz^*q8OY&2!{D}* z%2f_;?g@1&t8OBS2QfS}@Cc7JJTdST>kN?qltJ6&r;fv`4C6gp_t^|~NOIvS(IA@A zBk7VYu}qoUC#4kWC3quG38cuDqlmR-dyR&07-Hnw<4&FW8BJ%pMQ%mxJEUVE!j6t- zc+N1j$Wkn|nhH)fg5{o6(xD|$Zt%J&NV~$-v8hgJ>*6%NW+FNDczZ+Yk5rjT-HVV;jA{cCTO>Y2%?Oi9A~d3Yr7NO=OT?~8wopdsS2RX+$0;v_3A~`$XOYJ% PY+@2A+Q(==Ph;T^zP2PH literal 0 HcmV?d00001 diff --git a/Code/Steiner/theorieVererbung/src/EBike.java b/Code/Steiner/theorieVererbung/src/EBike.java new file mode 100644 index 0000000..66168bc --- /dev/null +++ b/Code/Steiner/theorieVererbung/src/EBike.java @@ -0,0 +1,24 @@ +public class EBike extends Fahrrad { + private int leistungInWatt; + + public EBike(String marke, int artikelnummer, double preis, int leistungInWatt) { + super(marke, artikelnummer, preis); + this.leistungInWatt = leistungInWatt; + } + + public int getLeistungInWatt() { + return leistungInWatt; + } + + public void setLeistungInWatt(int leistungInWatt) { + this.leistungInWatt = leistungInWatt; + } + + // Methoden + public void ausgabeInfoAufKonsole() { + System.out.println("#" + getArtikelnummer() + " " + getMarke() + " - Preis: " + getPreis() + " - Motor: " + + leistungInWatt); + + } + +} \ No newline at end of file diff --git a/Code/Steiner/theorieVererbung/src/Fahrrad.class b/Code/Steiner/theorieVererbung/src/Fahrrad.class new file mode 100644 index 0000000000000000000000000000000000000000..76727d162da0c18601576efea34c88341ba281aa GIT binary patch literal 1662 zcmaJ>+iu%N6r7c0(Ng935-V|6B~BZ_LHm%Wm9&-^iKIX- z4Y*&@k0{U!>K5=rKcF8~be0rs-OvZ_F3--HGdpLo|NMLQH-OLaDvvxibI9S28A@g- z=TO1jCGKzM@c<8(An=KWM;1O6m~my$RRT)~@8z-F?n$q`eW(M+YgYy4WT2g{>Uojt zsz5;0na~fE6LP&Lklk@SM?Vp`TAEC+@0Gt7$khB6>E{m|PkkG?4HdkVjUFSjZKYo) zwU$?mAebg4|03(Otc$du|P#ngS19Dz_C!ju^VGNo8^QAS}~ zHdNg^@^_=7SH2heMl$iHX5_Y2Bl6nMmFI+^@&xjSeiSs-zGF~@ec1^D*}88GEnpFA z1$=-)0du%iz&sW#d{$tqz97{z-`AlIWdF6&9lsUMXYu7M9v4u>j)kuZc!HH#JT?Dc z3s?hYCSEk_yT*If)FYw8lTa&{di{tS#l&03-+sfkYBpC%x0=T;p0O{tg)QuRc5J|7 zTdav}k3=ZaK=9+UM=Gk5v#x&5l;~f%IBovm=kR{bOVw(P!iS=CsQ(snkNv z`1o94{lY!RJNCP3aO0Cx@5`q4gA)t9M%e@3??!z#weEQ;sP!cE(u$vkOAa`a7QUdw zo(k8K#OkDsp~y($+mpVU0)IDzPg-3ac6>lllfB-dqgBYxr=0AEr+KJVsq4=sIppP+#XU#;LE7+K}GFt#j%WSBdJ(FJsiE?nkf(&^20> zj#b|oF(*;IO6oNtSL4x~@)0A3dgb@nleF=LU*-&1;7?fN;x_2eCNplIGi=ch!?2Jr qq|Rvlw9GP}s0y{M6Pv;Y_Bos8?BNBzp^sbqzr>w;jNOmNkN*Sx7HWwA literal 0 HcmV?d00001 diff --git a/Code/Steiner/theorieVererbung/src/Fahrrad.java b/Code/Steiner/theorieVererbung/src/Fahrrad.java new file mode 100644 index 0000000..ed0fb64 --- /dev/null +++ b/Code/Steiner/theorieVererbung/src/Fahrrad.java @@ -0,0 +1,43 @@ +public class Fahrrad { + private String marke; + private int artikelnummer; + private double preis; + + public Fahrrad(String marke, int artikelnummer, double preis) { + this.marke = marke; + this.artikelnummer = artikelnummer; + this.preis = preis; + } + + public String getMarke() { + return marke; + } + + public void setMarke(String marke) { + this.marke = marke; + } + + public int getArtikelnummer() { + return artikelnummer; + } + + public void setArtikelnummer(int artikelnummer) { + this.artikelnummer = artikelnummer; + } + + public double getPreis() { + return preis; + } + + public void setPreis(double preis) { + this.preis = preis; + } + + public void ausgabeInfoAufKonsole() { + System.out.println("#" + artikelnummer + " " + marke + " - Preis: " + preis); + } + + public void umgebungGenissen() { + System.out.println("Ich geniesse es, mit dem " + marke + " durch die atomar verseuchte Landschaft zu fahren"); + } +} \ No newline at end of file diff --git a/Code/Steiner/vererbungTier/.vscode/settings.json b/Code/Steiner/vererbungTier/.vscode/settings.json new file mode 100644 index 0000000..e112a70 --- /dev/null +++ b/Code/Steiner/vererbungTier/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "java.project.sourcePaths": ["src"], + "java.project.outputPath": "bin", + "java.project.referencedLibraries": [ + "lib/**/*.jar" + ] +} diff --git a/Code/Steiner/vererbungTier/README.md b/Code/Steiner/vererbungTier/README.md new file mode 100644 index 0000000..7c03a53 --- /dev/null +++ b/Code/Steiner/vererbungTier/README.md @@ -0,0 +1,18 @@ +## Getting Started + +Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code. + +## Folder Structure + +The workspace contains two folders by default, where: + +- `src`: the folder to maintain sources +- `lib`: the folder to maintain dependencies + +Meanwhile, the compiled output files will be generated in the `bin` folder by default. + +> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there. + +## Dependency Management + +The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies). diff --git a/Code/Steiner/vererbungTier/bin/App.class b/Code/Steiner/vererbungTier/bin/App.class new file mode 100644 index 0000000000000000000000000000000000000000..5bb9d5f3a70f11107a3b2e6b43e4307492e7c39e GIT binary patch literal 600 zcmZut+b#o96kVrUGe%L>x?k$vBKiR?2@;VQJdh^h=}aAUWK3mDMffT&nvnPaA0^f< zi5CxNpM70x?fv=n_5olEYYtKhT|0Mo4$=y_8~vcGp^h5WlikD9aboo{~sG=^Px_jjEix)`zExH z9!5}<;i)X9MX}Scfv;PM#{2ec}!j(NYUdFX&pvY{)&HQr49F`Q}$@3EUmq? z*`EgfeT;h0j{#<6_?eIby7-RVc|PAp!GFidd48;oiKEq5O!CdFy<(1U{ttY*Gn|G; q9R>QMa52fKM7jmi2x;jDnDHVb4-;6zGHDAKL>ZON7Avfzu=)*N8fd)$ literal 0 HcmV?d00001 diff --git a/Code/Steiner/vererbungTier/bin/Hund.class b/Code/Steiner/vererbungTier/bin/Hund.class new file mode 100644 index 0000000000000000000000000000000000000000..a7a2541faf6e915b23923cb3d9a48ba0be826308 GIT binary patch literal 952 zcmaJl!g=LjWrL}%ks^BzkXl*1n?R!Eu=vEHq-`U=v$}(lNF? z7c6!2BdIl{S@4OQ2gA05>nN7U_Za!<8X{`&ap1y$T!m zv1_5iu#t$me5!*7@zq$LK}}z zw@_oK{&g$WxgLu}8|Jc)xo31Ri~TehJ};|Ypyz}qTn&5?R@+*Sqp7>-> z<{SkF*C-=={EUc$+J+lTT#VM%zoOLmhFcf74SdJWzpOUxEYJsHOYjTUG#*kdg(~)F V&e7Td{f}`-nN3j>&+r1o!Ud#6VZmzRjFM?=Ph?Ljl`r8p zKnSER_y9f%aqUFHB@qjc=iE8>%suzcuixiC0ldI70~v<=8?HYI1389VPl}MC@LUE` zA2L)M&Iv!|ZI1_|c2|co7}?D}@j7ZKOk`2AkVk=`?8rd8o%sV1_V~aP3>8PY-0SmD z#&{9T>9LF$3@5qLCZT})33=%nVvXd$;WN#UZ8ZBOtfOk+8pB$OdlqToTiC!Ru~f{h z&MTIx{hrFzRJ7o}T>`_Fg)1mm$oWkRw{V+b)8`Y>QGv_#2dT%ji!={3Rk*jx_;N2y z+`*248pC>0)WusZ+>Lulx z(KOItsQ@_JTbZe8q#IC!)He)MPfbm#w5C7ZQ7C zQ?Y{nF~xs3I1#S4o2k%3qQgC}E48r81?&~^kilX#pSxpS^Ch1Vd>sTL?07tiL}cI* z!|syZRR#<^Vc7mZmEQ5(Ep}-7S(-bLp&dO~S`9*ngfsLnwDy0X_$4_vX*H8*j+l8| zBD^tY!NO%i#E%~mY0%toHKoPqZ0##5t#7z~jvK&tZ2zlTqD(VUwJ4ML3)L*{5z3&B WUHTX4Y@fadI3Q%wu8qfdimg9h0_bD_ literal 0 HcmV?d00001 diff --git a/Code/Steiner/vererbungTier/bin/Tier.class b/Code/Steiner/vererbungTier/bin/Tier.class new file mode 100644 index 0000000000000000000000000000000000000000..132df59d638e07a798487c523664e561dd431f0f GIT binary patch literal 998 zcmaJ=&2AGh5dNH`*<{%^p`|V5r?ilkq=kmxQ=kVTRUoB+lqeiHIU6@|yRoBPr&8a9 z2jB%j{75};;l@KD#=DV{DivDUo*B=~H=k$r&)@T30AAv`gA_xiB}M2U!%#ftr@R_) z)vLbi91GvjrQ!p@u-KSfHBBg0uf~vlA(b@y49n%&>q?t~>$)pkq;bWA1CJqHuC()D zSnx21EJL9om3TWEbVS(VogfC%J`dVFlvW=bGo~*i!fV({3E1h$PJ@rAyj1AZh_ z9xJ%+VD$ot=2>LKz{47D5Vp1f%SokDSKkv0LtF$O)E4PEZh5$kb%xaeKM{4Ud~QBS z(tK^%DSotzSRU>nM-+w@K2Qv9Q;$Ml97sz)ZyD~{Fe36w zYZIA}4-bXu>u%(tj2#CRhSH=PQl07(QB9hXlzqT`qr)@HXP4pAbk$?;B;jkWx`BvF z4XsZ`!`dv9Da(bx*4a>8;{I{UKbfCeWy&;8QRhL>lt$DFS=`TIk6wUn*f#$Dd_)cM z-Y6x)dcdPdL=GM^Y|W6ptb7Mg8P@;rYDXyMn%SfwOjFZoM(re$lqT6hj`loh2T0Ke zxH~^-?S9An7t&HF(7q5y&QWBRd>s_Ywvu?`D(omxT%48BKeYspbcSnmCb{>?myxab z70Wx{Fn^Alzz^J+Ah>ZhkI?4h>^748$Jx^;k(R<1w&}DLKcMvxRnlCN9^na|VeKEK CtMGIH literal 0 HcmV?d00001 diff --git a/Code/Steiner/vererbungTier/src/App.class b/Code/Steiner/vererbungTier/src/App.class new file mode 100644 index 0000000000000000000000000000000000000000..acdc82515523a02e98de5f31018f35fd17d09a2d GIT binary patch literal 444 zcmZut+e!ja6kTU7&NxnKmZqgosZw%6ycydLndS8qmR8TL+8 zq0=13%~!ol6H%PXkk1kk1e*Q)Cp){VCW7B@9dC z6Mv+JB(hkhTuC3G(+75E&{|o23d5VhY-JNuST_d~*ksAW2^_N2yj2Aj6&X-xUZK1I R8zn+jq_9IllW!F`ZinV@JT4@DZi$3|V#s^87nxHm;*ax2mn81|X8L~Uugn#1S z&=^hn;1BRe8Ses#TOmH|%)NK-IrrQ<_t)>Mp8#Isg#!yE8@Exmk;i74qFWB`VcWue z3lA9bucVUZHAAJ|x!{+)<#RP^bxkPM$ZLFL*l6paU?_H^67S=nFTx)0`xLQ8vftsc zVaV2#M5n9ca3D@(^3y(z)$lkWbWwn9;h~F1*m3a~Rff_VtxaS?K7A+5SP!FO9=iqX zxp;z_g?$$Xu&H!HLRU|UkU%MUv&e{m3hShNWg%SZ))}cbq+Rg9Bb?#^Nhz=P<=`pm z3^!Oc;DfQLp7WStE8r8+)@s1bxin+4BEyx57!KBrW|fs;b1w0^5E|4pk>x83jikY6 z47I7YnFS==J74B1C>PKG9qafof)A-_PJ75eV}0gX}GdH?_b literal 0 HcmV?d00001 diff --git a/Code/Steiner/vererbungTier/src/Hund.java b/Code/Steiner/vererbungTier/src/Hund.java new file mode 100644 index 0000000..bee53b0 --- /dev/null +++ b/Code/Steiner/vererbungTier/src/Hund.java @@ -0,0 +1,12 @@ + +// Subklasse Hund +public class Hund extends Tier { + public Hund(String name) { + super(name); + } + + @Override + public void gibLaut() { + System.out.println(name + " macht Wau"); + } +} \ No newline at end of file diff --git a/Code/Steiner/vererbungTier/src/Katze.class b/Code/Steiner/vererbungTier/src/Katze.class new file mode 100644 index 0000000000000000000000000000000000000000..0194f9554517a9bf8925913bf021f96d1b6f9776 GIT binary patch literal 872 zcmaKq-EI;=6vzL=*Rty>NX1$|Ds5>6T8mzJf$>6;Mk87ih+gz+fC)_5ogurkP4G#4 z4UN&H7e0UwWjwo(NQIcq&Yn4Y&VPRA%=z{E@+W|2cRPIsl>a;?~9V$n8UJ+NaPvtV$BHiUur1to@c`Q{9-_ife5thwO~9vbg&FH%Sjb@~ zk6jmgs9M-}aR8eko2U>&Pl|xDmH=m=5k4KQV}SA;UFzn0;x4MxfyI+Vt3$h8+NbE7YaIRn`$87OHCmm-n?aTyY8kFC;*XMip!gN3#y6xdkpaFV i`){U=0%@digS1j)A0?U$4IJYTTewC0JZYBcz5NHHdE3|k literal 0 HcmV?d00001 diff --git a/Code/Steiner/vererbungTier/src/Katze.java b/Code/Steiner/vererbungTier/src/Katze.java new file mode 100644 index 0000000..b7cf85b --- /dev/null +++ b/Code/Steiner/vererbungTier/src/Katze.java @@ -0,0 +1,11 @@ +// Subklasse Katze +public class Katze extends Tier { + public Katze(String name) { + super(name); + } + + @Override + public void gibLaut() { + System.out.println(name + " macht miau"); + } +} \ No newline at end of file diff --git a/Code/Steiner/vererbungTier/src/Tier.class b/Code/Steiner/vererbungTier/src/Tier.class new file mode 100644 index 0000000000000000000000000000000000000000..6872ab27aff9029d3e27e5b0b45300ee4de9c44a GIT binary patch literal 917 zcmaJ<+ip@p6kP+9fzwk#D%N_bz0eA@7WKskj1Q7Dn&2gY=z~uKOkv7lhMY4r;n|KpT8GB0X)Vd2OR5ZBylZ`Jg(;`degxz z+~&B$vBi+kVjvlE^)qoUDxT2YO2hg}cdHD^CrT^(lp$YSJTAQ@a?NyzoT)1rA$(_*|$l4y+uI9uum{ zM}Cy4ydkfa97{2%Iw+#V;Ii#d?(Yx3KAjSFV<7snW^`NFcgpr?6U-Lu| zNRsq%UeYv2)V$|HcRU#sB4Tw>=3L|wu{j>fCGhui_^992(p+eoq9#1Ap{%TOJY?8k z@V87G!`AefVN%6{od>RT^E|l@X&4aLPZx%7@<&`#eFf(RhWhzzQ*w z#N-J^k<8>YOLN3OA~vH~_6y?WuZUd`8sD)p%i>J(yTn+dd{+q@Lk{<8c8Gb13XZUe M4cez@e}n$be^<@rjsO4v literal 0 HcmV?d00001 diff --git a/Code/Steiner/vererbungTier/src/Tier.java b/Code/Steiner/vererbungTier/src/Tier.java new file mode 100644 index 0000000..cddbfdd --- /dev/null +++ b/Code/Steiner/vererbungTier/src/Tier.java @@ -0,0 +1,14 @@ +// Superklasse Tier +public abstract class Tier { + protected String name; + + public Tier(String name) { + this.name = name; + } + + public abstract void gibLaut(); + + public void schlafen() { + System.out.println(name + " schläft"); + } +}