Quiz 9 Solution - Friday June 16, 2000
1. What are the five primary components in a class definition.
- Instance Variables
- Instance Methods
- Class Variables
- Class Methods
- Constructors
2. What is the Java keyword used to indicate a call to the constructor of
a class?
3. What is the signature of the constructor of a class?
<access control keyword> NameofClass (formal parameter list)
4. What is the syntax of a class header?
<access control keyword> class classname <extends A> <implements B,C, etc.>