In dit document staat de cursus Object Oriented Programming samengevat. De cursus is gebaseerd op het boek "Zie Scherper" van Tim Dams en vat alles duidelijk en overzichtelijk samen tot een geheel.
In deze samenvatting komen concepten zoals objecten, klasses, methodes, overerving, polymorfisme, ...
Inhoudstabel
Voorwoord ....................................................................................................................... 3
H1: Klassen en objecten .................................................................................................... 4
1.1 OOP Introductie............................................................................................................................. 4
1.2 Klassen en objecten in C# .............................................................................................................. 4
1.3 Methoden en acces modifiers ....................................................................................................... 4
1.4 Properties ...................................................................................................................................... 5
H2: Geheugenmanagement bij klassen .............................................................................. 7
2.1 Objecten en methoden ................................................................................................................. 7
2.2 Stack en Heap ................................................................................................................................ 7
2.3 Null en NullReferenceException .................................................................................................... 8
H3: Advanced klassen en objecten .................................................................................... 9
3.1 Default contructors ....................................................................................................................... 9
3.2 Object Initializer Syntax ................................................................................................................. 9
3.3 Static ............................................................................................................................................ 10
H4: Arrays en klassen ...................................................................................................... 10
4.1 Arrays van objecten ..................................................................................................................... 10
4.2 Foreach en var ............................................................................................................................. 11
4.3 List ............................................................................................................................................... 11
4.4 Dictionary .................................................................................................................................... 12
H5: Overerving................................................................................................................ 12
5.1 Introductie ................................................................................................................................... 12
5.2 Constructors bij overerving ......................................................................................................... 13
5.3 Virtual en override....................................................................................................................... 15
5.4 Base keyword .............................................................................................................................. 15
H6: Advanced overerving ................................................................................................ 15
6.1 System.Object.............................................................................................................................. 15
6.2 Abstract ....................................................................................................................................... 16
H7: Compositie ............................................................................................................... 17
7.1 Heeft-een relatie ......................................................................................................................... 17
7.2 Aanduiding................................................................................................................................... 17
7.3 In de praktijk ................................................................................................................................ 17
7.4 Heeft-meerdere relatie ............................................................................................................... 18
H8: Polymorfisme ........................................................................................................... 19
8.1 Introductie polymorfisme............................................................................................................ 19
1
, Object Oriented Programming Elektronica-ICT
8.2 Is en As keywords ........................................................................................................................ 19
8.3 Objecten vergelijken: alles komt samen ..................................................................................... 20
H9: Interfaces ................................................................................................................. 21
9.1 Introductie interfaces .................................................................................................................. 21
9.2 Interfaces in de praktijk ............................................................................................................... 23
9.3 Final chapter: alles komt samen.................................................................................................. 23
APPENDIX: Basiskennis ................................................................................................... 26
Arrays................................................................................................................................................. 26
Strings ................................................................................................................................................ 27
APPENDIX: Git ................................................................................................................ 28
Inleiding ............................................................................................................................................. 28
File lifecycle ....................................................................................................................................... 28
Overzicht van werking ....................................................................................................................... 29
2
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller layz. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.49. You're not tied to anything after your purchase.