Term
click below
click below
Term
Normal Size Small Size show me how
APCSP Lesson 2.8
Abstraction
Term | Definition |
---|---|
abstraction | A general representation of something -- of some person or place or event or process. Words, symbols, maps, and models are all examples. |
abstracting | Process of creating abstractions. |
constant | The numeral '5', is an abstraction that represents a single thing, e.g., the value 5. |
variable | The symbol 'X', can be used to represent any number. X is more general than a constant value of 5. |
data abstraction | The practice of organizing and encapsulating certain data into a more general representation. An example would be storing the text 'hello' in a single variable rather than having numerous occurrences of 'hello' in a program |
procedural abstraction | The practice of organizing and encapsulating algorithms in named procedures that can then be invoked by name. An example would be the 'sqrt(x)', square root of x, which encapsulates the algorithm for calculating the square root of x. |