Making a public constant just const
as opposed to static const
leads to duplicating its value for every instance of the
class, uselessly increasing the amount of memory required to execute the application.
Noncompliant code example
public class Myclass
{
public const THRESHOLD:int = 3;
}
Compliant solution
public class Myclass
{
public static const THRESHOLD:int = 3;
}