Skip to content

Instantly share code, notes, and snippets.

@Nutrox
Created January 3, 2011 20:43
Show Gist options
  • Save Nutrox/763937 to your computer and use it in GitHub Desktop.
Save Nutrox/763937 to your computer and use it in GitHub Desktop.
AS3 Abstract-esque class implementation
package {
public class AbstractExample {
public function AbstractExample() {
if( Object(this).constructor == AbstractExample ) {
throw new Error( "AbstractExample class must be extended." );
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment