Physician - } public Lab getFavLab(){ return favLab; }...

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

View Full Document Right Arrow Icon
import java.util.*; import*; public class Physician extends Doctor implements Serializable{ 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);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public Lab getFavLab(){ return favLab; } public void setFavLab(Lab favLab){ this.favLab = favLab; } public double getBiWeeklyPay(){ return (salary/26.0)*0.2; } public Object clone() { Physician p = (Physician)super.clone(); P p.favLab = (Lab)favLab.clone(); p return p; 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