Ch01 Introduction To Object-Oriented Concepts Flashcards
object-oriented code that includes other code inside
Object wrappers For example, you can take a structured module and wrap it inside an object to make it look like an object. You can also use object wrappers to wrap functionality such as security features, non-portable hardware features, and so on.
In this type of design, the attributes and behaviors are contained within a single object.
object-oriented design
In this type of design, the attributes and behaviors are normally separated.
procedural or structured design
When properly designed, there is no such thing as _____ _____ in an OO model.
global data
Having no global data provides a high amount of _____ _____ in OO systems.
data integrity
In OO terminology, data are referred to as _____, and behaviors are referred to as _____.
attributes
methods
Restricting access to certain attributes and/or methods is called what?
data hiding
combining the attributes and methods in the same entity
encapsulation
Can you design bad code just as efficiently with OO design as with any other programming methodology?
yes
The fundamental advantage of OO programming is that the data and the operations (code) that manipulate the data are both _____ in the object.
For example, when an object is transported across a network, the entire object, including the data and behavior, goes with it.
encapsulated
What are the building blocks of an OO program?
Objects
A program that uses OO technology is basically a collection of _____.
objects
The _____ of an object is what the object can do.
behavior
In procedural languages, behavior is defined by _____, _____, and _____.
procedures, functions, and subroutines
In OO programming terminology, behaviors are contained in _____.
methods