Quiz 12
Version 1

 

 

Quiz for CS 5
Week 12

1. What is the reserved word "super" used for?

2. When is a constructor method called?

3. Can a Java program contain several methods with the same name? Under what circumstances?

4. What does the term "overloading" mean?

5. The special identifier this usually refers to an object. In certain special circumstances, however, it can be used as if it were the name of a method. What are these circumstances?

6. What is the difference between a static and a non-static method?

7. What is the reserved word "extends" used for?

8. How many constructors can you define for a single class?

9. How do "taxicab distances" differ from ordinary distances?

10. What is a "default constructor"?

Last modified August 28 for Fall 99 cs5 by fleck@cs.hmc.edu


This page copyright ©1998 by Joshua S. Hodas. It was built with Frontier on a Macintosh . Last rebuilt on Sun, Nov 29, 1998 at 12:46:07 PM.
http://www.cs.hmc.edu/~hodas/courses/cs5/week_14/quiz.html