University of Iowa Computer Science Department

Quiz 06


1. What is a static variable (contrast it with an instance variable)?

2. Define a class named Table with two constructors. The first constructor takes two arguments: a string denoting what type of wood the table is made from and the second argument specifies the number of legs the table has. The other constructor takes a single string argument describing the type of wood the table is made from. This constructor should call the first and pass in the value 4 for the number of legs.
UI CLAS CRA ACM Valid CSS! Valid XHTML 1.0 Transitional Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 Cynthia tested
| Modified: .