subject

Write the definition of a class contestresult containing: an instance variable winner of type string, initialized to the empty string. an instance variable secondplace of type string, initialized to the empty string. an instance variable thirdplace of type string, initialized to the empty string.
a. a method called setwinner that has one parameter, whose value it assigns to the instance variable winner.
b. a method called setsecondplace that has one parameter, whose value it assigns to the instance variable secondplace.
c. a method called setthirdplace that has one parameter, whose value it assigns to the instance variable thirdplace.
d. a method called getwinner that has no parameters and that returns the value of the instance variable winner.
e. a method called getsecondplace that has no parameters and that returns the value of the instance variable secondplace. a method called getthirdplace that has no parameters and that returns the value of the instance variable thirdplace. no constructor need be defined.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
question
Computers and Technology, 24.06.2019 02:00
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Click the "draw structure" button to activate the drawing utility. draw two diastereomers of (1z,4r)−1,4−dimethylcyclodecene and name them, including (e)/(z) and (r)/(s) notation. part 1 out of 4 draw the diastereomer containing a chiral center with s configuration here. window open
Answers: 1
You know the right answer?
Write the definition of a class contestresult containing: an instance variable winner of type strin...
Questions
question
Mathematics, 24.09.2021 23:30
question
Mathematics, 24.09.2021 23:30
question
Mathematics, 24.09.2021 23:30
question
Mathematics, 24.09.2021 23:30
Questions on the website: 13722359