subject

1. which of the following would be the most appropriate way to invoke the calculateavg( ) method found in the student class if an object named gradstudent had been instantiated from the class? public double calculateavg(double, double) a. gradstudent = calculateavg(87.2, 90); b. answer = student. calculateavg(87.2, 90); c. calculateavg(87.2, 90); d. answer = gradstudent. calculateavg(double, double); e. answer = gradstudent. calculateavg(87.2, 90); 6. which of the following is one of the user-defined methods inherited from the object class?
a. tostring( )
b. main( )
c. calculateavg( )
d. equalshashcode( )
e. typehashcode( )
2. properties are associated with the of the class while methods are affiliated with the of the class.
a. activity, fields
b. accessors, mutators
c. objects, instances
d. data, behavior
e. behavior, data
3. which of the following is a valid overloaded method for calculateavg( )? int calculateavg(int val1, int val2)
a. void calculateavg(int val1, int val2)
b. int calculateavg(int val1, int val2)
c. int calculateavg(double val1, double val2)
d. double calculateavg(int val1, int val2)
e. int calculateaverage(int val2, int val1)

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, RoxanneDuartee
Which statement best explains how plant cells use photosynthesis to maintain homeostasis? they use glucose and water to make energy. they break down glucose into fat. they combine oxygen and water to make glucose. they make glucose from carbon dioxide and water.
Answers: 1
image
Computers and Technology, 23.06.2019 05:20, reeeeeee32
What did creator markus “notch" persson initially call his game
Answers: 1
image
Computers and Technology, 25.06.2019 00:00, ddatsman1730
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
image
Computers and Technology, 25.06.2019 01:30, marianaescamilla404
What was the advantage of using transistors instead of vacuum tubes in the second-generation computers? a. computers were drastically reduced in size. b. computers no longer produced errors. c. computers became affordable. d. computers could run on electricity.
Answers: 1
You know the right answer?
1. which of the following would be the most appropriate way to invoke the calculateavg( ) method fou...

Questions in other subjects: