You are on page 1of 1

public class BloodData1 {

static String bloodType, rhFactor;


public BloodData1(){
bloodType = "O";
rhFactor = "+";
System.out.println( bloodType + rhFactor + " is added to the blood bank.");}

public BloodData1(String bt, String rh){


bloodType = bt; rhFactor = rh;
System.out.println(bloodType + rhFactor + " is added to the blood bank. ");

}
}

You might also like