Add public attribute to contrustor. : Constructor « Class « Flash / Flex / ActionScript






Add public attribute to contrustor.

 

class SomeClass {
  public function SomeClass (  ) {
  }
}
The following code adds a constructor method to MyClass.

package com.java2s {
  public class MyClass {
    public function MyClass (  ) {
    }
  }
}

        








Related examples in the same category

1.Creating a Constructor
2.A class named Product with a constructor and a method
3.Constructor with parameter
4.Add assignment code to class constructor
5.Set the memeber variable in constructor
6.Declare a constructor method for the Example class