package subtype;

public class Vet {

	public void workOn(Bird bird) {
		System.out.println("The vet is working on bird: " + bird);
	}

	public Bird getPatient() {
		Duck quack = new Duck();
		return quack;
	}

	public static void main(String[] args) {
		Vet drX = new Vet();
		Bird robin = new Bird(0.79,"conical");
		drX.workOn(robin);
		Duck quack = new Duck();
		drX.workOn(quack);
		Bird sickBird = drX.getPatient();
		System.out.println("drX got a new patient: " + sickBird);
	}

}