Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Game Preview
Accessor & Mutator Methods
Game Code: 632003
English
15
Public
Identify and write codes for accessor and mutator methods in a class to allow client code to use and modify data.
Play
Study
Slideshow
Share
Dima Zoaiter
125
Share Accessor & Mutator Methods
Class PIN
Use Class PIN to share Baamboozle+ games with your students.
Upgrade
Google Classroom
Facebook
Twitter
Save to Folder
Given class Counter above, how many instances of the Counter class are created in the code segment?
2
10
Given class Counter above, how many instance variables are created in the code segment?
1
10
Given class Counter above, how many instance methods are created in the code segment?
1
10
Given class Counter above, what is the type of count() method in the code segment? (accessor or mutator)
mutator
10
Name the instance methods that are available in class Counter.
getValue() and count()
10
Given class Counter above, what is the type of getValue() method in the code segment? (accessor or mutator)
accessor
10
How many instance variables are created in the code segment above?
3
10
Consider the above code segment. What is the return type of the getDay() method?
int
10
How many parameters does the getDay() method have?
0
10
The process of hiding object data and providing methods for data access is called ______________________.
encapsulation
10
True or False: The coinName variable can be accessed only by methods of the Coin class.
True
10
True or False: setVehicleAttributes is an accessor method.
False
10
How many accessor methods do you see in the code segment above?
2
10
What is the return type of getModelName() method?
String
10
You should declare all instance variables as ____________________.
private
10
Play for Free
Baamboozle+
NEW!
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
Baamboozle+
More
How to Play
Make some teams
Take turns choosing questions
Say the answer then hit the
Check
button
Click
Okay
if the team is correct or
Oops
if not
Teams
Sign in to choose
1
2
3
4
5
6
7
8
Grid Size
Sign in to choose
8
16
Quiz
Sign in to choose
Classic
Questions and Power-Ups
Classic Jr
Sign in to choose
×
Sign up for a trial to unlock features.
Get Started
Your experience on this site will be improved by allowing cookies.
Allow cookies