Fill in the blank. 1. Within a class, you can define a________ to create an inst
ID: 3546409 • Letter: F
Question
Fill in the blank.
1. Within a class, you can define a________ to create an instance of the class and initialize its instance variables
.
2. A_________ method is used to return the value that's stored in a field.
3. A_________ method is used to assign a value to a field.
4. If you don't code a constructor for a class, Java will create a ________ that initializes the fields of the class.
5. When you create a method with the same name as another method but with a different parameter list, you are________the method
.
6. A primitive type is passed to a method________.
7. An object is passed to a method _________.
8. When you code a static method in a class, that method can't refer to ________variables.
Explanation / Answer
1. Constructor.
2.Accessor
3.Mutator
4.default constructor
5.overloading
6.By value
7.By reference
8.non-static
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.