Created
April 5, 2014 15:27
-
-
Save raj-rajaratnam/9993398 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.axis2.axiom.service; | |
public class Product { | |
private int productId; | |
private String productName; | |
private String productDescription; | |
private double price; | |
public Product(int productId, String productName, String productDescription, double price) { | |
super(); | |
this.productId = productId; | |
this.productName = productName; | |
this.productDescription = productDescription; | |
this.price = price; | |
} | |
public int getProductId() { | |
return productId; | |
} | |
public void setProductId(int productId) { | |
this.productId = productId; | |
} | |
public String getProductName() { | |
return productName; | |
} | |
public void setProductName(String productName) { | |
this.productName = productName; | |
} | |
public String getProductDescription() { | |
return productDescription; | |
} | |
public void setProductDescription(String productDescription) { | |
this.productDescription = productDescription; | |
} | |
public double getPrice() { | |
return price; | |
} | |
public void setPrice(double price) { | |
this.price = price; | |
} | |
@Override | |
public String toString() { | |
return "price= " + price + ", productDescription= " + productDescription + | |
", productId= " + productId + ", productName= " + productName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment