Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HT21 - DA361A - OOP & arv
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Anton Tibblin
September 20, 2021
Education
350
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
HT21 - DA361A - OOP & arv
Anton Tibblin
September 20, 2021
More Decks by Anton Tibblin
See All by Anton Tibblin
HT22 - DA106A - Användbarhet (1)
tibbelit
0
380
HT22 - DA106A - Ramverk
tibbelit
0
300
HT22 - DA106A - JavaScript
tibbelit
0
310
HT22 - DA106A - Responsiv webbutveckling
tibbelit
0
360
HT22 - DA106A - Introduktion till CSS
tibbelit
0
430
HT22 - DA106A - Formulär & tabeller
tibbelit
0
410
HT22 - DA106A - Introduktion till HTML
tibbelit
0
590
HT22 - DA106A - Kursintroduktion
tibbelit
0
400
VT22 - DA395A - Storage, geolocation & media
tibbelit
0
330
Other Decks in Education
See All in Education
Visionary Initiative: Materials-Positive Society — Evolving “Things,” empowering a positive society | Science Tokyo
sciencetokyo
PRO
0
240
アラムコSTEAMチャレンジ 実践報告書
codeforeveryone
0
230
Soluciones al examen de Geografía 2026. JUNIO (Convocatoria Ordinaria)
juanmartin2026
1
10k
子どものためのプログラミング道場『CoderDojo』〜法人提携例〜 / Partnership with CoderDojo Japan
coderdojojapan
PRO
4
19k
チームの鏡になるー自分の癖を知ると、チームのパターンが見えてくる@スクフェス仙台
saorimurooka
0
170
[2026前期火5] 論理学(京都大学文学部 前期 第10回)「論理学の哲学——意味とは何か(Tonkと推論主義)」
yatabe
0
300
学生のうちに考えておきたい信頼の話
suisan
1
770
セキュリティ担当がいない中小医療機関を院外のRISSはどう支えるべきか / How External RISS Can Help Small Medical Institutions
eller86
0
160
CLASSIFICATION OF CRUDE DRUGS
pawan5505
0
150
良書紹介08_ 頭のいい子がやっているすごいグラフの読み方
bunnchinn3
0
160
[2026前期火5] 論理学(京都大学文学部 前期 第13回)「走って、止まって、積み上がる」
yatabe
0
220
新入社員を「あの子」と呼ばない運動 -PBL その前に- / Stop Calling New Hires "Kids"
aokiplayer
2
830
Featured
See All Featured
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Producing Creativity
orderedlist
PRO
348
41k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Scaling GitHub
holman
464
140k
Speed Design
sergeychernyshev
33
2.1k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Crafting Experiences
bethany
1
290
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
320
Building Applications with DynamoDB
mza
96
7.2k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
Transcript
OOP MED Del 3
Dagens föreläsning Dagens agenda • Repetition: Klasser och objekt •
Arv i OOP • I teorin • I UML • I Python
None
REPETITION - OOP Det vi gjort hittills
Klass Människa Instans
None
Namn på klassen Klassens attribut Klassens metoder
Klassdiagram Python-kod
”Vanlig” Python-kod Type hinting
None
RELATION MELLAN OBJEKT
None
En filmsamling
Klassdiagram över filmsamling
None
En butik
Klassdiagram över en butik https://mau.instructure.com/courses/9354/pages/exempellosning-oop-i-python-samband-mellan-klasser
None
ARV
En klass ärver attribut/metoder från en annan klass
Barn ärver från förälder
None
Hur ser detta ut i Python?
Exempel
Er tur! Hitta 3st exempel på klasser som använder arv,
inkl. vilka metoder/attribut som ärvs.
Arv i praktiken
None
None
None