topical media & game development

talk show tell print

actionscript-zoo-v2-src-zoo-Food.ax

actionscript-zoo-v2-src-zoo-Food.ax (swf ) [ flash ] flex


  package zoo {
    public class actionscript-zoo-v2-src-zoo-Food {
      private var calories:int;
      private var name:String;
      
      public function actionscript-zoo-v2-src-zoo-Food (initialCalories:int) {
        setCalories(initialCalories);
      }
      
      public function getCalories ():int {
        return calories;
      }
      
      public function setCalories (newCalories:int):void {
        calories = newCalories;
      }
      
      public function getName ():String {
        return name;
      }
      
      public function setName (newName:String):void {
        name = newName;
      }  
    }
  }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.