Answered step by step
Verified Expert Solution
Question
1 Approved Answer
FOR AP CS, ITS ABOUT OBJECTS: methods instance variables Exercise A bunch of Java components, in full costume, are playing a party game, Who am
FOR AP CS, ITS ABOUT OBJECTS:
methods instance variables Exercise A bunch of Java components, in full costume, are playing a party game, "Who am 17" They give you a clue, and you try to guess who they are based on what they say. Assume they always tell the truth about themselves. If they happen to say something that could be true for more than one guy, then write down all for whom that sentence applies. Fill in the blanks next to the sentence with the names of one or more attendees. Tonight's attendees: instance variable, argument, return, getter, setter, encapsulation, public, private, pass by value, method Who am I? A class can have any number of these. A method can have only one of these. This can be implicitly promoted. I prefer my instance variables private. It really means 'make a copy'. Only setters should update these. A method can have many of these. I return something by definition. I shouldn't be used with instance variables. I can have many arguments. By definition, I take one argument. These help create encapsulation. I always fly solo. you are hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started