IT 114: Introduction to Java
Answers to Class 26 Ungraded Quiz
-
What do you call the special method used to create an object
of a class?
a constructor
-
What do you call the variables in an object that can be accessed
by any method in the class?
fields
-
What do you call methods that only work with the values
contained in the object?
instance methods
-
Does every class have to have a constructor?
no
-
Can an instance method have the void return type?
yes