Use private attribute to define instance variable : Instance variable « Class « Flash / Flex / ActionScript






Use private attribute to define instance variable

 

package com.java2s {
  public class MyClass {
    private var varName;

    public function MyClass (  ) {
    }
  }
}

        








Related examples in the same category

1.Add an instance variable
2.Define instance variable varName with the access-control modifier internal