Physician - this.favLab = favLab public double getBiWeeklyPay return(salary/26D.2D public Object clone Physician physician =(Physician)super.clone

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

View Full Document Right Arrow Icon
public class Physician extends Doctor{ Lab favLab; L public Physician(){ super(); this.favLab = null; } public Physician(double salary, String name, double doctorRegistrationId, Lab favLab){ super(salary, name, doctorRegistrationId); setFavLab(favLab); } public Lab getFavLab(){ return favLab; } public void setFavLab(Lab favLab){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: this.favLab = favLab; } public double getBiWeeklyPay(){ return (salary/26D)*.2D; } public Object clone() { Physician physician = (Physician)super.clone(); physician.setFavLab(new Lab(favLab.getLabName(), favLab.getID())); physician.favLab = (Lab)favLab.clone(); return physician; r } }...
View Full Document

This note was uploaded on 03/25/2010 for the course CIS CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Ask a homework question - tutors are online