100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
volledige samenvatting Object Oriented Software Development II $5.39   Add to cart

Summary

volledige samenvatting Object Oriented Software Development II

 36 views  0 purchase
  • Course
  • Institution

volledige samenvatting Object Oriented Software Development II

Preview 2 out of 11  pages

  • October 21, 2022
  • 11
  • 2020/2021
  • Summary
avatar-seller
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)

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 easyIT. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $5.39. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67096 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$5.39
  • (0)
  Add to cart