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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:50, shadow29916
What is a rush associated with alcohol?
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, louie8656
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, petergriffin6772
Which boolean operator enables you to exclude a search term? a} not b} and c} or d} plus
Answers: 1
image
Computers and Technology, 24.06.2019 09:30, nialphonsa
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
You know the right answer?
Write the definition of a class contestresult containing: an instance variable winner of type strin...

Questions in other subjects: