Name & ID:_________________________________________________________

Quiz Q1

CS 100 � Summer 1999

Due: Wednesday July 7, 1999 5 minutes after the beginning of class

Question 1: What is the difference between a public field and a private field in a class definition?

 

 

 

 

 

 

 

 

Question 2: Compare and contrast: procedures, functions, and constructors.

 

 

 

 

 

 

 

 

 

Question 3: What does it mean for a method to override another?

 

 

 

 

 

 

 

 

 

Question 4: Explain the type 'boolean' (what values can it have?) and give an example of a program fragment that uses a boolean expression.