Managing Parameter/Variable Name Conflicts with this : This : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » This »

 

Managing Parameter/Variable Name Conflicts with this


 
  

  class MyClass {
    private var calories = 1000;

    public function eat (calories) {
      this.calories += calories;
    }
  }

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Class
» This