aspose file tools*
The moose likes Beginning Java and the fly likes help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

help

Duc Nguy
Greenhorn

Joined: Nov 12, 2001
Posts: 7
How do i get this to work with Van, sedan class
public class TestDrivable
{
public static final int LEFT = 0;
public static final int RIGHT = 1;
public static goForward(Drivable vechicle)
{
vechicle.accelerate();
vehicle.decelearate();
}
public static turn(Drivable vehicle, int direction)
{
vehicle.decelerate();
vehicle.turn(direction);
vehicle.accelerate();
}
public static void main(String [] args)
{
Van mini = new Van;

William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Show me your Driveable class and a short description of what you are trying to do.


Please ignore post, I have no idea what I am talking about.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

That was helpful, you have two different posts with almost the same information.
 
 
subject: help