Quiz 15 Solution - Wednesday July 5, 2000
1. What are the five primary components in a class definition?
- Instance Variables
- Instance Methods
- Class Variables
- Class Methods
- Constructors
2. What are the four primary components in the signature of a method?
- Access Control Keyword
- Return Type
- Name
- Formal Parameter List
3. What is the signature of the constructor of a class? How many
constructors can a class have?
Access Control Keyword ClassName(Formal Parameter List)
A class can have unlimited constructors as long as they have different parameter lists
4. What keyword indicates that we are calling the constructor of a class?