public class Vehile
{
double speed;
int power;
void speedUp(int s)
{
speed=s+speed;
}
void speedDown(int d)
{
speed=speed-d;
}
int setPower(int p)
{
power=p;
}
int getPower()
{
return power;
}
double getSpeed()
{
return speed;
}
}
{
double speed;
int power;
void speedUp(int s)
{
speed=s+speed;
}
void speedDown(int d)
{
speed=speed-d;
}
int setPower(int p)
{
power=p;
}
int getPower()
{
return power;
}
double getSpeed()
{
return speed;
}
}