Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Word Bank: A) private B) instance method C) class / class name D) boolean E) ins

ID: 3624152 • Letter: W

Question

Word Bank:
A) private
B) instance method
C) class / class name
D) boolean
E) instance variable
F) new operator
G) this
H) static variable
I) Object
J) void
K) type of the instance variable accessed
L) constructor
M) overload
N) public
O) local variable
[You do not need to use all letters. Some
letters will need to be used more than
once.]

_____ Data in an object
_____ Messages sent to objects
_____ A way to create a new object
_____ Ways to initialize a newly created object
_____ Class-wide data accessible by all objects of the same type
_____ Must be the same name as the class name
_____ Refers to the object being send a message / called object
_____ Must have a return type
_____ If uninitialized, has no default value (garbage)
_____ Must not have a return type
_____ If uninitialized, has a known default value
_____ Can only be accessed by its simple name, no reference qualifier
_____ By Java naming convention, starts with an uppercase letter
_____ A "better" return type for mutators/setters
_____ Methods or constructors that have the same name but differ in the number, type, or order of parameters
_____ Return type for accessors/getters
_____ Most instance variables should be this access mode
_____ Most methods and constructors should be this access mode

Explanation / Answer

I've re-thought it all and this is what it is. I am unsure only about the first one, the other ones make much more sense.
I've written why I think its the choice on the left so that it may make more sense to you too. Discard my last answer.

__(O)___ Data in an object (rationale: data in an object has a scope only within the object, and so should refer to local variables, however I am unsure)
__(B)___ Messages sent to objects (rationale: messages are sent to the object and to handle them, the object calls methods)
__(F)___ A way to create a new object
__(L)___ Ways to initialize a newly created object
__(H)___ Class-wide data accessible by all objects of the same type
__(L)___ Must be the same name as the class name
__(G)___ Refers to the object being send a message / called object
__(B)___ Must have a return type
__(O)___ If uninitialized, has no default value (garbage)
__(L)___ Must not have a return type
__(E)___ If uninitialized, has a known default value
__(C)___ Can only be accessed by its simple name, no reference qualifier (rationale: just realized, when calling a class's methods, you have to use the class' name such as System.out.print() or Math.random())
__(C)___ By Java naming convention, starts with an uppercase letter
__(D)___ A "better" return type for mutators/setters
__(M)___ Methods or constructors that have the same name but differ in the number, type, or order of parameters
__(D)___ Return type for accessors/getters (rationale: the only return types listed are Object and boolean--The return type of a getter really repends on what it is returning--a String, an int, a double etc)
__(A)___ Most instance variables should be this access mode
__(N)___ Most methods and constructors should be this access mode

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote