Condemned - { return demolitionCo; } public int...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/** * Jesus Campos * CS-116-004 * Final Project - Condemned Class * The Condemend class is a copy of the Structure class with two additional fields: * Demolition Company code, and Salvage Company code. **/ package code2; p public class Condemned extends Structure { p private int demolitionCo, salvageCo; p public Condemned() { super(); demolitionCo = 0; salvageCo = 0; } public Condemned(int demol, int salvCo) { super(); demolitionCo = demol; salvageCo = salvCo; } public int getDemolitionCo()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { return demolitionCo; } public int getSalvageCo() { return salvageCo; } public void setDemolitionCo(int demol) { demolitionCo = demol; } public void setSalvageCo(int salv) { salvageCo = salv; } public int calcPriority() { super.priority = super.priority * 100; return priority; } public String toString() { return super.toString() + "\n"+"Demoltion Company Code: "+demolitionCo+"\n"+"Salvage Company Code: "+salvageCo; } }...
View Full Document

Ask a homework question - tutors are online