100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Summary

volledige samenvatting Object Oriented Software Development II

Rating
-
Sold
-
Pages
11
Uploaded on
21-10-2022
Written in
2020/2021

volledige samenvatting Object Oriented Software Development II

Institution
Course

Content preview

WC’s en oef: https://github.com/SebastienVanlede/OO-Software-Development-II

Kort samengevat: https://github.com/Sleinbrein/OOSD2-templates

HT1: overerving
hashCode & equals: objecten vergelijken o.b.v. een attribuut
(/attributen)
bv 2 robotobjecten zijn gelijk als hun attribuut “serienummer” gelijk is

 De klasse wordt uitgebreid met 2 methodes: hashCode en equals
 Die methoden genereren: alt+shift+s – generate hashCode & equals en het attribuut selecteren

Subklasse
 Public class SUB extends SUP
 Constructor altijd beginnen met super(); (laten genereren)

“abstract”
 Abstracte klasse  je kan er geen instantie van maken
 Bv public abstract class
 Abstracte methode  nog geen implementatie, enkel signatuur
 Bv public abstract String maakGeluid();

“static”
 Static attribuut (=klassevariabele): slechts 1 instantie v/h attribuut
o wordt dus gedeeld door alle instanties
 static methode (=klassemethode): wordt aangeroepen zonder referentie naar een instantie (dus
niet bv this. Of super. )
 non-static methode (instantiemethode): altijd this. Of super. Enzo

“final”
 final klasse: kan geen subklassen hebben

, HT2: polymorfisme & interfaces
Een interface is een klasse die enkel het volgende kan bevatten:

 constanten
 abstracte methodes
 default methodes met implementatie
 static methodes met implementatie

verschil superklassen en interface




Tkan ook implements drawable, saleable zijn (2 interfaces)

Written for

Institution
Study
Course

Document information

Uploaded on
October 21, 2022
Number of pages
11
Written in
2020/2021
Type
SUMMARY

Subjects

$6.56
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
easyIT Hogeschool Gent
Follow You need to be logged in order to follow users or courses
Sold
81
Member since
5 year
Number of followers
30
Documents
23
Last sold
1 month ago

4.0

5 reviews

5
2
4
1
3
2
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions