Object-Oriented Programming Concepts Flashcards
Real-world objects share two characteristics: state and …
behaviour
… objects are conceptually similar to real-world objects
Software
Where does An object store its state?
in fields
How does An object exposes its behavior?
through methods
What does An object operate?
object’s internal state
What for does object serve as the primary mechanism?
for object-to-object communication
Hiding internal state and requiring all interaction to be performed through an object’s methods is known as …
data encapsulation
The source code for an object can be written and maintained independently of the source code for other objects
Modularity
By interacting only with an object’s methods, the details of its internal implementation remain hidden from the outside world
Information-hiding
If a particular object turns out to be problematic, you can simply remove it from your application and plug in a different object as its replacement.
Pluggability
… is a blueprint or prototype from which objects are created
Class
each class is allowed to have … direct superclass
one
each superclass has the potential for an … of subclasses
unlimited number
At the end of your subclass declaration, use the … keyword
extends
… makes code for your subclasses easy to read
Inheritance