University of Iowa Computer Science Department

Quiz 08

1. A method can be declared with the virtual keyword. What does virtual mean?

2. Define two classes named A and B. Show how to make B a subclass of A. Define a one-parameter constructor in A that takes a string argument. Then define a zero-parameter constructor in B that calls the one-paramenter constructor in A with the argument "It's Friday".
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: .