Beruflich Dokumente
Kultur Dokumente
Data Abstraction: problem solving via the formulation of abstract data types (ADT's).
3. Information hiding: the ability to selectively hide implementation details of a given ADT.
4. Polymorphism: the ability to manipulate different kinds of objects, with only one operation.
5. Inheritance: the ability of objects of one data type, to inherit operations and data from another data
type. Embodies the "is a" notion: a horse is a mammal, a mammal is a vertebrate, a vertebrate is a life
form.
Encapsulation: Combining data structure with actions Data structure: represents the properties, the
state, or characteristics of objects Actions: permissible behaviors that are controlled through the
member functions.
Inheritance: Ability to derive new objects from old ones permits objects of a more specific class to
inherit the properties (data) and behaviors (functions) of a more general/base class ability to define a
hierarchical relationship between objects.
e.g,
Heap memory - dynamically allocated at execution time - "managed" memory accessed using pointers
• DYNAMIC DATA: explicitly allocated and deallocated during program execution by C++ instructions
written by programmer using operators new and delete.
• AUTOMATIC DATA: automatically created at function entry, resides in activation frame of the
function, and is destroyed when returning from function.
Private • may be accessed only by the member functions, and friends of this class –
Protected:
OR