import java.math.BigDecimal;
import java.util.Date;

//import java.sql.Date;


public final class ValueObject {
	
	 public ValueObject (double aMass, String aName, BigDecimal aDateOfDiscovery) {
	     fMass = aMass;
	     fName = aName;
	     //make a private copy of aDateOfDiscovery
	     //this is the only way to keep the fDateOfDiscovery
	     //field private, and shields this class from any changes that 
	     //the caller may make to the original aDateOfDiscovery object
	     //fDateOfDiscovery = new BigDecimal(aDateOfDiscovery);
	     fDateOfDiscovery = BigDecimal.ZERO;
	     
	  }
	 
	 public double getMass() {
		    return fMass;
		  }
	 
	 public String getName() {
		    return fName;
		  }
	 
	 public BigDecimal getDateOfDiscovery() {
		    BigDecimal x=new BigDecimal(0);
		    return x;
		    
		  }
	 
	 private final double fMass;

	 
	 private final String fName;
	 
	 private final BigDecimal fDateOfDiscovery;

}
