diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 4d1a3db..c5a1833 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -20,20 +20,6 @@ "icon": "lucide-file", "title": "29593852 - Strings" } - }, - { - "id": "f2cbb43fcaaa6aec", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "00 Inbox/29605321 - OOP 4_16.md", - "mode": "source", - "source": false - }, - "icon": "lucide-file", - "title": "29605321 - OOP 4_16" - } } ] } @@ -198,10 +184,12 @@ }, "active": "7a0e7b37bd89861d", "lastOpenFiles": [ + "10 Courses/02 - SoSe 2026/OOP/29605397 - OOP.md", + "10 Courses/02 - SoSe 2026/OOP/29605321 - Classes.md", + "40 Extras/OOP_Lecture/5_project/blog/img/02_oops.jpg", "10 Courses/02 - SoSe 2026/OOP", "10 Courses/02 - SoSe 2026/AT/29593852 - Strings.md", "10 Courses/02 - SoSe 2026/AT/29593952 - Regular Languages.md", - "00 Inbox/29605321 - OOP 4_16.md", "00 Inbox/29595454 - Komplexe Zahlen und Eigenwertaufgaben.md", "OOP - Apr", "10 Courses/02 - SoSe 2026/Mathe II/29595454 - Mathematik II.md", @@ -239,11 +227,9 @@ "40 Extras/OOP_Lecture/6_exams/sose25/img/q0.svg", "40 Extras/OOP_Lecture/6_exams/sose23/img/uml1.pdf", "40 Extras/OOP_Lecture/6_exams/sose23/img/q7.svg", - "40 Extras/OOP_Lecture/6_exams/sose23/img/q6.svg", "40 Extras/OOP_Lecture/6_exams/wise24/exam_solution.pdf", "40 Extras/OOP_Lecture/6_exams/wise24/exam.pdf", "40 Extras/OOP_Lecture/6_exams/wise23/exam_solution.pdf", - "40 Extras/OOP_Lecture/6_exams/wise23/exam.pdf", "40 Extras/OOP_Lecture/6_exams/sose25/feedbacks.md", "40 Extras/OOP_Lecture/6_exams/sose25/evaluation.md", "40 Extras/OOP_Lecture/6_exams/sose24/feedbacks.md", diff --git a/00 Inbox/29605321 - OOP 4_16.md b/10 Courses/02 - SoSe 2026/OOP/29605321 - Classes.md similarity index 93% rename from 00 Inbox/29605321 - OOP 4_16.md rename to 10 Courses/02 - SoSe 2026/OOP/29605321 - Classes.md index b2bc92d..ec53dfb 100644 --- a/00 Inbox/29605321 - OOP 4_16.md +++ b/10 Courses/02 - SoSe 2026/OOP/29605321 - Classes.md @@ -1,23 +1,24 @@ --- created: 2026-04-16 08:01 -course: -topic: +course: "[[29605397 - OOP]]" +topic: classes related: type: lecture status: 🔴 tags: - university + - cpp --- ## 📌 Summary > [!abstract] +> Introduction of Classes and visibility modifiers > --- ## 📝 Content -## Classes C approach of defining a Pokemon: ```C typedef struct { @@ -155,6 +156,6 @@ We can also create an instance as a copy of another object of the _same class_: class Pokemon { // ... public: - Pokemon(const Pokemon& p) + Pokemon(const Pokemon& other): exp(other.exp), level(other.level) {} } ``` \ No newline at end of file diff --git a/10 Courses/02 - SoSe 2026/OOP/29605397 - OOP.md b/10 Courses/02 - SoSe 2026/OOP/29605397 - OOP.md new file mode 100644 index 0000000..cc31725 --- /dev/null +++ b/10 Courses/02 - SoSe 2026/OOP/29605397 - OOP.md @@ -0,0 +1,6 @@ +--- +created: 2026-04-16 09:17 +course: "[[29605397 - OOP]]" +tags: + - university +---