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, 22.06.2019 10:00
Which is a false statement considering copyright law? a. when people upload something to the internet they automatically receive a copyright for the work b. the work does not have to contain a copyright notice to be considered having a copyright c. copyright is legal term describing rights given to the creators for literary and artistic works d. personal pictures are always covered by copyrights
Answers: 1
question
Computers and Technology, 22.06.2019 14:20
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 06:20
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
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, 20.06.2021 16:40
Questions on the website: 13722362