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
Anton Tibblin
September 20, 2021
Education
0
340
HT21 - DA361A - OOP & arv
Anton Tibblin
September 20, 2021
Tweet
Share
More Decks by Anton Tibblin
See All by Anton Tibblin
HT22 - DA106A - Användbarhet (1)
tibbelit
0
330
HT22 - DA106A - Ramverk
tibbelit
0
280
HT22 - DA106A - JavaScript
tibbelit
0
280
HT22 - DA106A - Responsiv webbutveckling
tibbelit
0
330
HT22 - DA106A - Introduktion till CSS
tibbelit
0
390
HT22 - DA106A - Formulär & tabeller
tibbelit
0
380
HT22 - DA106A - Introduktion till HTML
tibbelit
0
550
HT22 - DA106A - Kursintroduktion
tibbelit
0
380
VT22 - DA395A - Storage, geolocation & media
tibbelit
0
300
Other Decks in Education
See All in Education
著作権と授業に関する出前講習会/dme-2025-05-01
gnutar
0
200
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
1.9k
自己紹介 / who-am-i
yasulab
PRO
3
5.2k
Sponsor the Conference | VizChitra 2025
vizchitra
0
550
推しのコミュニティはなんぼあってもいい / Let's join a lot of communities.
kaga
2
1.8k
GitHubとAzureを使って開発者になろう
ymd65536
1
120
Gamified Interventions for Composting Behavior: A Case Study Using the Gamiflow Framework in a Workplace Setting
ezefranca
1
140
2025.05.10 技術書とVoicyとわたし #RPALT
kaitou
1
230
諸外国の理科カリキュラムにおけるビッグアイデアの構造比較
arumakan
0
330
『会社を知ってもらう』から『安心して活躍してもらう』までの プロセスとフロー
sasakendayo
0
230
America and the World
oripsolob
0
510
【品女100周年企画】_抜粋
shinagawajoshigakuin_100th
0
770
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
6.5k
Build The Right Thing And Hit Your Dates
maggiecrowley
36
2.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
Adopting Sorbet at Scale
ufuk
77
9.5k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Embracing the Ebb and Flow
colly
86
4.7k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
How GitHub (no longer) Works
holman
314
140k
Producing Creativity
orderedlist
PRO
346
40k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
Code Review Best Practice
trishagee
69
18k
The Invisible Side of Design
smashingmag
301
51k
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