{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Physician - this.favLab = favLab public double...

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

{[ snackBarMessage ]}