コード例 #1
0
        public Primate()
        {
            //initializing the fields
            _hasopposablethumbs = true;
            _haslargebrain      = true;
            _brainSize          = BrainSIZE.UNKNOWN;
            _primateLocomotion  = PrimateLOCOMOTION.UNKNOWN;

            //printing to the screen that the Primate class has been initialized.
            Utilities.LogIt("This is to confirm that the Primate class has been initialized.\n");
        }//end of Primate Constructor
コード例 #2
0
 //UseLargeBrain Method | Simply printing out that the primate has a large brain and is using it.
 public void UseLargeBrain()
 {
     //printing a saying to the screen
     Utilities.LogIt("The primate has a large brain and is using it.\n");
     _brainSize = BrainSIZE.LARGE;
 }