Damaged - { return salvageCo; } public double...

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 - Damaged Class * The Damaged class is a copy of the Structure class with three additional fields: * Clean Up Company Code, Salvage Company Code, and Estimated Damage. **/ package code2; p public class Damaged extends Structure { p private int cleanUpCo, salvageCo; private double estDamage; p public Damaged() { super(); cleanUpCo = 0; salvageCo = 0; estDamage = 0.0; } public Damaged(int cU, int salv, double estDam) { super(); cleanUpCo = cU; salvageCo = salv; estDamage = estDam; } public int getCleanUpCo() { return cleanUpCo; } public int getSalvageCo()
Background image of page 1

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

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

Unformatted text preview: { return salvageCo; } public double getEstDamage() { return estDamage; } public void setCleanUpCo(int cU) { cleanUpCo = cU; } public void setSalvageCo(int salv) { salvageCo = salv; } public void setEstDamage(double estDam) { estDamage = estDam; } public int calcPriority() { super.priority = super.priority * 10; return priority; } public String toString() { return super.toString() + "\n"+"Clean Up Company Code: "+cleanUpCo+"\n" +"Salvage Company Code: "+salvageCo +"\n"+"Estimated Damage: "+estDamage; } }...
View Full Document

This note was uploaded on 06/18/2009 for the course CS 116 taught by Professor Theys during the Spring '07 term at Central Texas College.

Page1 / 2

Damaged - { return salvageCo; } public double...

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