This commit is contained in:
sco
2022-05-23 23:11:51 +02:00
parent 183736b4e6
commit ab5c3ee991
13 changed files with 305 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
package intro.engine;
public class MotoreTest {
public static void main(String[] args) {
Gasoline m1 = new Gasoline(1400, 4);
Diesel m2 = new Diesel(1900, 5);
NaturalGas m3 = new NaturalGas(1400, 4);
System.out.println(m1.getPower());
System.out.println(m2.getPower());
System.out.println(m3.getPower());
}
}