Structure - /* * Jesus Campos * CS-116-004 * Final Project...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/** * Jesus Campos * CS-116-004 * Final Project - Structure Class * This is Main structure class. The Destroyed, Damaged, and Condemned classes are subclasses of the Structure * class, except that they have additional fields, but they inherit all variables and methos of the Structure class. **/ package code2; import java.text.DecimalFormat; i public class Structure { p //Instance Variables private Id ID; private String address, type, notes; private double value; protected int priority; DecimalFormat twoDecimals = new DecimalFormat("$0.00"); D //Default Constructor public Structure() { ID = new Id(); address = ""; type = ""; notes = ""; value = 0.0; priority = 0; } //Overloaded Constructor public Structure(Id someId, String someAddress, String someType, double someValue, int somePriority, String someNotes) { ID = someId; address = someAddress; type = someType; notes = someNotes; value = someValue; priority = somePriority; } //Accessor Methods public Id getId() { return ID; }
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Structure - /* * Jesus Campos * CS-116-004 * Final Project...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online