Move the PartTwo.java file to its own package, add initial Vehicle.java

master
DjBushido 2014-01-21 20:51:25 -05:00
parent 1242130b46
commit bb31ffcfd9
2 changed files with 61 additions and 1 deletions

View File

@ -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) {
}
}

View 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;
}
}