Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class VehicleBean {
- String VModel;
- String VManufacturer;
- String VYear;
- MotorBean VMotor;
- public VehicleBean() {}
- public VehicleBean( String model, String manu, String year, String mc, String cylinders, String ps ) {
- this.VModel = model;
- this.VManufacturer = manu;
- this.VYear = year;
- this.VMotor = new MotorBean( mc, cylinders, ps );
- }
- public String getVModel() {
- return VModel;
- }
- public String getVManufacturer() {
- return VManufacturer;
- }
- public String getVYear() {
- return VYear;
- }
- public MotorBean getVMotor() {
- return this.VMotor;
- }
- public void setVModel( String model ) {
- this.VModel = model;
- }
- public void setVManufacturer( String manu ) {
- this.VManufacturer = manu;
- }
- public void setVYear( String year ) {
- this.VYear = year;
- }
- public String toString() {
- return "";
- }
- }
- class MotorBean {
- String MCc;
- String MNo_cylinders;
- String MPs;
- public MotorBean() {}
- public MotorBean( String mc, String cylinders, String ps ) {
- this.MCc = mc;
- this.MNo_cylinders = cylinders;
- this.MPs = ps;
- }
- public String getMCc() {
- return this.MCc;
- }
- public String getMNo_cylinders() {
- return this.MNo_cylinders;
- }
- public String getMPs() {
- return this.MPs;
- }
- public void setMCc( String mc ) {
- this.MCc = mc;
- }
- public void setMNo_cylinders( String cylinders ) {
- this.MNo_cylinders = cylinders;
- }
- public void setMPs( String ps ) {
- this.MPs = ps;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement