package project1;
class Fuel
{
int power;
int smoothness;
int roots;
}
class Hydrogon extends Fuel
int power;
int smoothness;
int roots;
}
class Hydrogon extends Fuel
{
int gasUnit;
}
class Car
int gasUnit;
}
class Car
{
Fuel run()
Fuel run()
{
return new Fuel();
}
}
class FutureCar extends Car
return new Fuel();
}
}
class FutureCar extends Car
{
Hydrogon run()
Hydrogon run()
{
return new Hydrogon();
}
}
public class Class4
return new Hydrogon();
}
}
public class Class4
{
public Class4()
public Class4()
{
}
public static void main(String[] args)
}
public static void main(String[] args)
{
FutureCar futureCar = new FutureCar();
futureCar.run();
}
}
FutureCar futureCar = new FutureCar();
futureCar.run();
}
}
No comments:
Post a Comment