COMPE 260

10 cards   |   Total Attempts: 182
  

Cards In This Set

Front Back
Name and define the three fundamental concepts of object-oriented programming.
Encapsulation: Wrapping the data and basic operations used for processing this data
within a single entity.
Inheritance: A class can be derived from another class, and this derived class then inherits
the members of the parent class.
Polymorphism: The property of a derived class D and an ancestor class A having a function member with the same prototype, but that behaves differently for A objects than for
D objects.
The ....... of data and basic operations within a single entity is one of the key properties of ADTs.
Encapsulation
Calling a member function in an object is referred to as sending a(n) ..... to the object.
Message
..... binding is done at compile time; ...... binding is done at run time.
Static (or early), dynamic (or late)
The method of achieving reusability that most distinguishes OOP from other approaches is based on .....
Inheritance
List the main steps in OOD.
(1) Identify the objects in the problem.
(2) Analyze the objects to determine if there is commonality in them.
(3) Where there is commonalty;
a. Define base classes that contain this commonality.
b. Derive classes that inherit this commonality from the base class.
Members of a base class declared as ...... cannot be accessed in a derived class.
Private
Members of a base class declared as ..... can be accessed in a derived class but not by other classes or programs.
Protected
Protected inheritance is the most common kind of inheritance. (True or false)
False
The primary idea governing the use of public inheritance is the .... relationship.
Is-a