Hoofdstuk 10 Flashcards
What is data-abstraction?
Values can be combined into one, and form a new, more abstract type with proper operations
What is good about data-abstraction?
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
What is representation Independence?
2 correct implementations of a single specification of an ADT are indistinguishable by clients of these types
What are limits of ADT?
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
What is an object?
Container which encapsulates both data and operations
What are data items in an object called?
What are operations called?
Instance variables
Methods