Exemple #1
0
 public Brain(Brain another)
 {
     //Code to properly copy Brain can go here
 }
Exemple #2
0
 protected Brain(Brain another)
 {
     id =
         System.Threading.Interlocked.Increment(ref idCount);
 }
Exemple #3
0
 public Person(int age, Brain aBrain)
 {
     theAge   = age;
     theBrain = aBrain;
 }
Exemple #4
0
        //...
        public Person(Person another)
        {
            theAge = another.theAge;

            theBrain = another.theBrain.Clone() as Brain;
        }
Exemple #5
0
 public Person(Person another)
 {
     theAge   = another.theAge;
     theBrain = new Brain(another.theBrain);
 }