mirror of
https://github.com/bspeice/itcs4180
synced 2024-12-04 21:28:10 -05:00
Move the PartTwo.java file to its own package, add initial Vehicle.java
This commit is contained in:
parent
1242130b46
commit
bb31ffcfd9
@ -1,4 +1,4 @@
|
||||
package edu.uncc.itcs4180;
|
||||
package edu.uncc.itcs4180.PartTwo;
|
||||
|
||||
/* Assignment: Homework 1
|
||||
* File name: PartOne.java
|
||||
@ -8,5 +8,9 @@ package edu.uncc.itcs4180;
|
||||
*/
|
||||
|
||||
public class PartTwo {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
|
||||
}
|
56
HW1/src/edu/uncc/itcs4180/PartTwo/Vehicle.java
Normal file
56
HW1/src/edu/uncc/itcs4180/PartTwo/Vehicle.java
Normal file
@ -0,0 +1,56 @@
|
||||
package edu.uncc.itcs4180.PartTwo;
|
||||
|
||||
/* Assignment: Homework 1
|
||||
* File name: Vehicle.java
|
||||
* Group:
|
||||
* Bradlee Speice
|
||||
* Brandon Rodenmayer
|
||||
*/
|
||||
|
||||
public class Vehicle {
|
||||
|
||||
private int modelYear;
|
||||
private String manufacturerName;
|
||||
private String modelName;
|
||||
private int horsePower;
|
||||
private int noCylinders;
|
||||
private int noGears;
|
||||
|
||||
public int getModelYear() {
|
||||
return modelYear;
|
||||
}
|
||||
public void setModelYear(int modelYear) {
|
||||
this.modelYear = modelYear;
|
||||
}
|
||||
public String getManufacturerName() {
|
||||
return manufacturerName;
|
||||
}
|
||||
public void setManufacturerName(String manufacturerName) {
|
||||
this.manufacturerName = manufacturerName;
|
||||
}
|
||||
public String getModelName() {
|
||||
return modelName;
|
||||
}
|
||||
public void setModelName(String modelName) {
|
||||
this.modelName = modelName;
|
||||
}
|
||||
public int getHorsePower() {
|
||||
return horsePower;
|
||||
}
|
||||
public void setHorsePower(int horsePower) {
|
||||
this.horsePower = horsePower;
|
||||
}
|
||||
public int getNoCylinders() {
|
||||
return noCylinders;
|
||||
}
|
||||
public void setNoCylinders(int noCylinders) {
|
||||
this.noCylinders = noCylinders;
|
||||
}
|
||||
public int getNoGears() {
|
||||
return noGears;
|
||||
}
|
||||
public void setNoGears(int noGears) {
|
||||
this.noGears = noGears;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user