コード例 #1
0
 /// <summary>
 /// Called by default constructor
 /// Creates new objects
 /// </summary>
 private void Initialize()
 {
     m_personaldetails = new PersonalDetails();
     m_address         = new Address();
     m_contact         = new MemberContact();
     m_duration        = new MembershipDuration();
     m_bmi             = new BMI();
 }
コード例 #2
0
 /// <summary>
 /// Constructor 1
 /// </summary>
 /// <param name="personalDetails"></param>
 /// <param name="address"></param>
 /// <param name="contact"></param>
 /// <param name="type"></param>
 /// <param name="location"></param>
 /// <param name="duration"></param>
 /// <param name="bmi"></param>
 public Member(PersonalDetails personalDetails, Address address, MemberContact contact, MembershipType type, GymLocation location, MembershipDuration duration, BMI bmi)
 {
     m_personaldetails = personalDetails;
     m_address         = address;
     m_contact         = contact;
     m_type            = type;
     m_location        = location;
     m_duration        = duration;
     m_bmi             = bmi;
 }