Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>VehicleDMACCJava2Fall2023-TatesForkProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
1 change: 1 addition & 0 deletions Vehicle/bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/model/
Binary file modified Vehicle/bin/VehicleNoise.class
Binary file not shown.
6 changes: 5 additions & 1 deletion Vehicle/src/VehicleNoise.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import model.Example;
import model.Train;

import model.Truck;
public class VehicleNoise {

public static void main(String[] args) {
Expand All @@ -13,6 +13,10 @@ public static void main(String[] args) {

Train train = new Train();
System.out.println(train.makeNoise());

Truck f250 = new Truck();
System.out.println(f250.makeNoise());


}

Expand Down
31 changes: 31 additions & 0 deletions Vehicle/src/model/Truck.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package model;

public class Truck {
private String fuel;
private String name = "Truck";
private String model;
public String getFuel() {
return fuel;
}
public void setFuel(String fuel) {
this.fuel = fuel;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String makeNoise() {
return "VROOOM, YEE YEE!";
}


}