public class NameOfPatient { public Name getNameOfPatient(int PatientId) { Name name1 = new Name(); name1.lastName = "XYZ"; name1.firstName = "ABC"; name1.middleInitial = 'D'; return name1; } }