Java - Which of the following statements are true regarding this fragment of code within the class Vehicle?
public class Vehicle{
int passengers;
int fuelcap;
int mpg;
void range( ) {
System.out.println( "Range is "+ fuelcap * mpg);
}
Pleae only answer if you are absolutly sure.
2006-06-22
09:51:17
·
6 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design
answer out of these:
(Choose all correct answers)
A) This code overrides the default constructor
B) This code declares a method
C) The declared method does not return a value
D) The declared method cannot be overridden
E) This code will cause an error
2006-06-22
09:52:09 ·
update #1