wood burning stoves 2.0*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 984

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: 984

That was helpful, you have two different posts with almost the same information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help
 
Similar Threads
Return
enums
using interface and how to implement them
Help
Interface