Exemple #1
0
        // private Graphics graphObj;

        // this is a no - agrument constructor
        public Client()
        {
            currentClient = new ArrayList();
            currentClient.Add(getGender());        // 0
            currentClient.Add(getFirstName());     // 1
            currentClient.Add(getLastName());      // 2
            currentClient.Add(getAge());           // 3
            currentClient.Add(getHairColor());     // 4
            currentClient.Add(getHeight());        // 5
            Honesty honesty = new Honesty();

            currentClient.Add(honesty.HonestyRating);               // 6
            Responsibility responsibility = new Responsibility();

            currentClient.Add(responsibility.ResponsibilityRating); // 7
            Adaptability adaptability = new Adaptability();

            currentClient.Add(adaptability.AdaptabilityRating);     // 8
            Understanding understanding = new Understanding();

            currentClient.Add(understanding.UnderstandingRating);   // 9
            Patience patience = new Patience();

            currentClient.Add(patience.PatienceRating);             //  10
            Reliability reliability = new Reliability();

            currentClient.Add(reliability.ReliabilityRating);       // 11
            Boldness boldness = new Boldness();

            currentClient.Add(boldness.BoldnessRating);             // 12
        }
 // private Graphics graphObj;
 // this is a no - agrument constructor
 public Client()
 {
     currentClient = new ArrayList();
     currentClient.Add(getGender());        // 0
     currentClient.Add(getFirstName());     // 1
     currentClient.Add(getLastName());      // 2
     currentClient.Add(getAge());           // 3
     currentClient.Add(getHairColor());     // 4
     currentClient.Add(getHeight());        // 5
     Honesty honesty = new Honesty();
     currentClient.Add(honesty.HonestyRating);               // 6
     Responsibility responsibility = new Responsibility();
     currentClient.Add(responsibility.ResponsibilityRating); // 7
     Adaptability adaptability = new Adaptability();
     currentClient.Add(adaptability.AdaptabilityRating);     // 8
     Understanding understanding = new Understanding();
     currentClient.Add(understanding.UnderstandingRating);   // 9
     Patience patience = new Patience();
     currentClient.Add(patience.PatienceRating);             //  10
     Reliability reliability = new Reliability();
     currentClient.Add(reliability.ReliabilityRating);       // 11
     Boldness boldness = new Boldness();
     currentClient.Add(boldness.BoldnessRating);             // 12
 }