From 0a446b40580120540e278eab7ab9f5f26cfbc8d7 Mon Sep 17 00:00:00 2001 From: Henri Burau Date: Tue, 16 May 2023 10:58:56 +0200 Subject: [PATCH] change url --- 01-termin.md | 2 +- 02-termin.md | 2 +- 03-termin.md | 2 +- 04-termin.md | 2 +- 05-termin.md | 2 +- 06-termin.md | 2 +- 07-termin.md | 2 +- 08-termin.md | 2 +- 09-termin.md | 2 +- 10-termin.md | 69 +++++++++++++++++++++++++++++++++++++++++++++ abstract.md | 2 +- assert.md | 2 +- entwurfsmuster.md | 2 +- exceptions.md | 2 +- generics2.md | 2 +- lambdas.md | 2 +- nebenlaeufigkeit.md | 2 +- oo_design.md | 2 +- packages.md | 2 +- polymorphie.md | 2 +- reflections.md | 2 +- streams.md | 2 +- wam-ansatz.md | 2 +- werttypen.md | 2 +- 24 files changed, 92 insertions(+), 23 deletions(-) create mode 100644 10-termin.md diff --git a/01-termin.md b/01-termin.md index b9d1212..253fd48 100644 --- a/01-termin.md +++ b/01-termin.md @@ -1,7 +1,7 @@ diff --git a/02-termin.md b/02-termin.md index bed427c..ea855e9 100644 --- a/02-termin.md +++ b/02-termin.md @@ -1,7 +1,7 @@ diff --git a/03-termin.md b/03-termin.md index 1b70be0..7cb640f 100644 --- a/03-termin.md +++ b/03-termin.md @@ -1,7 +1,7 @@ diff --git a/04-termin.md b/04-termin.md index 2ef888a..00cb9ca 100644 --- a/04-termin.md +++ b/04-termin.md @@ -1,7 +1,7 @@ diff --git a/05-termin.md b/05-termin.md index 2911cb4..e0595d1 100644 --- a/05-termin.md +++ b/05-termin.md @@ -1,7 +1,7 @@ diff --git a/06-termin.md b/06-termin.md index e5da1c9..0275b52 100644 --- a/06-termin.md +++ b/06-termin.md @@ -1,7 +1,7 @@ diff --git a/07-termin.md b/07-termin.md index bf8fe97..dc42470 100644 --- a/07-termin.md +++ b/07-termin.md @@ -1,7 +1,7 @@ diff --git a/08-termin.md b/08-termin.md index d07d7f2..5196dbe 100644 --- a/08-termin.md +++ b/08-termin.md @@ -1,7 +1,7 @@ diff --git a/09-termin.md b/09-termin.md index 48473c4..d767ebb 100644 --- a/09-termin.md +++ b/09-termin.md @@ -1,7 +1,7 @@ diff --git a/10-termin.md b/10-termin.md new file mode 100644 index 0000000..ee9ab98 --- /dev/null +++ b/10-termin.md @@ -0,0 +1,69 @@ + + +# Termin 10 + +--- + +# Fragen + +--- + +# Links +[https://git.haw-hamburg.de/pm2-tutorium](https://git.haw-hamburg.de/pm2-tutorium) +- Aufgaben +- Tutoriumsfolien + * In Präsentationsansicht: [https://wi-pm2-tut.informatik.haw-hamburg.de](https://wi-pm2-tut.informatik.haw-hamburg.de/) + +--- + +# Plan für heute + +Fragestunde + +--- + +# Fragen + +* Was ist die Lösung der Feinschmeckeraufgabe aus der Generics Vorlesung? "Wie mache ich aus einem `Sec` das nur `String` enthält ein `Set`?" +* Warum ist in der Referenzlösung eine Map in der Wertklassenaufgabe? +* Wie wende ich die Regel "Producer extends consumer super (PECS)" an? + +--- + +# Feinschmeckeraufgabe + +--- + +# Map in Wertklasse + +--- + +# PECS + +"Producer extends consumer super" beschreibt das Benutzen von `extends` und `super` bei Collections als generische Parameter. + +--- + +Wenn man in einer Methode nur Sachen aus einer Collection **entnimmt** dann ist die Collection für uns ein Producer und wir benutzen `extends`. + +```java +public void listeAuf(Collection coll) { + // Sachen aus der Collection herrausnehmen +} +``` + +Wenn man nur Sachen in die Collection **einfügt** dann ist die Collection für uns ein Consumer und wir benutzen `super`. + +```java +public void packeRein(Collection coll) { + // Sachen in die Collection einfügen +} +``` + +Will man beides machen (einfügen und entnehmen) dann muss ein fester Typ genutzt werden. diff --git a/abstract.md b/abstract.md index 4bbef2e..5b2a211 100644 --- a/abstract.md +++ b/abstract.md @@ -1,7 +1,7 @@ diff --git a/assert.md b/assert.md index afc5b5f..f607c30 100644 --- a/assert.md +++ b/assert.md @@ -1,7 +1,7 @@ diff --git a/entwurfsmuster.md b/entwurfsmuster.md index fc4d86e..ef74dd9 100644 --- a/entwurfsmuster.md +++ b/entwurfsmuster.md @@ -1,7 +1,7 @@ diff --git a/exceptions.md b/exceptions.md index 2785b00..94b212f 100644 --- a/exceptions.md +++ b/exceptions.md @@ -1,7 +1,7 @@ diff --git a/generics2.md b/generics2.md index c742fcf..fa444dd 100644 --- a/generics2.md +++ b/generics2.md @@ -1,7 +1,7 @@ diff --git a/lambdas.md b/lambdas.md index 04c9f9c..beee0dc 100644 --- a/lambdas.md +++ b/lambdas.md @@ -1,7 +1,7 @@ diff --git a/nebenlaeufigkeit.md b/nebenlaeufigkeit.md index 7fb740a..573283e 100644 --- a/nebenlaeufigkeit.md +++ b/nebenlaeufigkeit.md @@ -1,7 +1,7 @@ diff --git a/oo_design.md b/oo_design.md index 26743eb..229389f 100644 --- a/oo_design.md +++ b/oo_design.md @@ -1,7 +1,7 @@ diff --git a/packages.md b/packages.md index 301e754..c35184d 100644 --- a/packages.md +++ b/packages.md @@ -1,7 +1,7 @@ diff --git a/polymorphie.md b/polymorphie.md index 754d3f6..edc2aa0 100644 --- a/polymorphie.md +++ b/polymorphie.md @@ -1,7 +1,7 @@ diff --git a/reflections.md b/reflections.md index 23fd210..348defd 100644 --- a/reflections.md +++ b/reflections.md @@ -1,7 +1,7 @@ diff --git a/streams.md b/streams.md index f4f2a93..28b1c85 100644 --- a/streams.md +++ b/streams.md @@ -1,7 +1,7 @@ diff --git a/wam-ansatz.md b/wam-ansatz.md index 6fefa42..3ff385c 100644 --- a/wam-ansatz.md +++ b/wam-ansatz.md @@ -1,7 +1,7 @@ diff --git a/werttypen.md b/werttypen.md index 0b4d3b0..1dd4dc0 100644 --- a/werttypen.md +++ b/werttypen.md @@ -1,7 +1,7 @@