Computer Science 3675
Fall 2006
Additional practice questions for final exam

  1. True/False.

    1. The class is an important concept of object-based programming.

    2. In most object-oriented languages, some type checking must be done at run time.

  2. In object-oriented programming, is a private variable of an object accessible only to that one object, or is it possible for other objects to access it directly?

  3. A base class of a class A is a class that A immediately extends. In a single-inheritance object-oriented language, is there a limit on the number of base classes that a class can have?

  4. In a single-inheritance object-oriented language, is there a limit on the number of subclasses that a class can have?

  5. In object-oriented programming, you imagine that objects carry methods with them. Yet, the methods are not really stored with the objects. How does an object locate its methods? How does it know which methods to select? What is the name of the system support that is responsible for locating methods?

  6. Some object-oriented languages allow selection of methods to be done either statically or dynamically, depending on how the method is defined. What is the difference between static and dynamic selection?

  7. 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?

  8. What are the characteristics of a virtual method? What makes it virtual?

  9. What is an abstract class?