Whats wrong with my code?


#1

class motorCycle{
int ID_Number;
public void motorcycle(int number){
}

public void vroom(){
	System.out.println("VROOOOOOOOMMMMMMM!!!!!!");
}

public void speed(int engine){
	System.out.println("my motorcycle goes:" + engine + " " + "miles per hour");
}

public int getNumber(){
	return ID_Number;
}

public static void main(String[] args){
	motorCycle hondaCBR = new motorCycle(2090);
	hondaCBR.vroom();
	hondaCBR.speed(120); 
	int motorCycleNumber = hondaCBR.getNumber();
	System.out.println("ID Number is:" + motorCycleNumber);
}

}


#2

Please post a link to the exercise. Thanks.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.