Question: Create a class named BloodData that includes fields that hold a blood type ( the four blood types are O, A,B, and AB) and an

Create a class named BloodData that includes fields that hold a blood type ( the four blood types are O, A,B, and AB) and an Rh factor( the factors are + and -). Create a default constructor that sets the fields to O and +, and an overloaded constructor that requires values for both fields. Also you need to write accessors and mutators for each field and of course, a display method.

Create a class named Patient that includes and ID number, age, and BloodData. Provide a default constructor that sets the ID number to 0, the age to 0, and the BloodData values to O and +. Create an overloaded constructor that provides values for each field. Also provide mutators and accessors for each field. And don't forget a display method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!