Computer Science 3675
Fall 2000
Practice questions for quiz 5
- Write a clearly legible T to the left of each of the
following that is true, and a clearly legible F to the left
of each that is false.
- Programs written in an object-oriented style tend
to be organized significantly differently from programs written
in a functional or procedural style.
- C++ uses name equivalence of types defined using typedef.
- The class is an important concept of object-based programming.
- In most object-oriented languages, some type checking
must be done at run time.
- Is a private data field of an object accessible only
to that one object, or is it possible for other objects to
access it directly?
- In a single-inheritance language, is there a limit on
the number of base classes that a class can have?
- In object-oriented programming, you imagine that
objects carry functions with them. Yet, the functions are
not really stored with the objects. How does an object
locate its functions? How does it know which functions to select?
What is the name of the system support that is responsible
for locating functions?
- How does the mechanism for inheriting variables work in
single-inheritance object-oriented languages? Is there a separate
implementation of each selector for each class, or does one
implementation of each selector work for all classes? How do the
selector(s) work?