Access Control Modifiers for Instance Methods : Member method : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Member method »

 

Access Control Modifiers for Instance Methods


 


class MyClass {
    internal var varName;
    private var varInt = 1000;

    public function MyClass (name) {
      this.varName = name;
    }

    public function update (  ) {
      this.varInt += 100;
    }
  }

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Class
» Member method