コード例 #1
0
 public Bird()
 {
     //initializing the Bird fields
     _canfly      = true;
     _isaquatic   = false;
     _birdAnatomy = BirdANATOMY.UNKNOWN;
     //printing to the screen that the Bird class has been initialized.
     Utilities.LogIt("This is to confirm that the Bird class has been initialized.\n");
 }//end of Bird Constructor
コード例 #2
0
 //Fly Method | Simply printing out to the screen that the bird is flying.
 public void Fly()
 {
     //printing a saying to the screen
     Utilities.LogIt("The bird is flying.\n");
     this._birdAnatomy = BirdANATOMY.FLIGHT;
 }