Hoofdstuk 10 Flashcards

1
Q

What is data-abstraction?

A

Values can be combined into one, and form a new, more abstract type with proper operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is good about data-abstraction?

A

Easily handle more complex structures
Don’t need to care about the details
Separation of INTERFACE and IMPLEMENTATION
Information Hiding: data inside can only be accessible via defined interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is representation Independence?

A

2 correct implementations of a single specification of an ADT are indistinguishable by clients of these types

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are limits of ADT?

A

ADT’s are good for encapsulation and information hiding, however they are not flexible enough to be used in more complex design.
We need four requirements of OOP
-Encapsulation and Information Hiding
-Inheritance
-Subtype compatibility
-Dynamic method selection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an object?

A

Container which encapsulates both data and operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are data items in an object called?
What are operations called?

A

Instance variables
Methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly