Ejemplo n.º 1
0
 public Shark()
 {
     //initializing the Shark Fields
     _ispredatory  = true;
     _size         = 13.5;
     _sharkAnatomy = SharkANATOMY.GILLS;
     //printing to the screen that the Shark class has been initialized.
     Utilities.LogIt("This is to confirm that the Shark class has been initialized.\n");
 }//end of Shark Constructor
Ejemplo n.º 2
0
 //AttackBoats Method | simply printing out that the shark is attacking a boat.
 public void AttackBoats()
 {
     //printing a saying to the screen
     //Utilities.LogIt("The shark is attacking a boat.\n");
     this._sharkAnatomy = SharkANATOMY.JAW;
     if (this._sharkAnatomy == SharkANATOMY.JAW)
     {
         Utilities.LogIt("The shark is attacking the boat with its jaw.\n");
     }
 }