chore: manual sync
This commit is contained in:
20
.obsidian/workspace.json
vendored
20
.obsidian/workspace.json
vendored
@@ -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",
|
||||
|
||||
@@ -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) {}
|
||||
}
|
||||
```
|
||||
6
10 Courses/02 - SoSe 2026/OOP/29605397 - OOP.md
Normal file
6
10 Courses/02 - SoSe 2026/OOP/29605397 - OOP.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
created: 2026-04-16 09:17
|
||||
course: "[[29605397 - OOP]]"
|
||||
tags:
|
||||
- university
|
||||
---
|
||||
Reference in New Issue
Block a user