---
title: "AS3抽象类写法"
author: "cuixuxucui"
date: "2011-06-21T17:21:17Z"
tags: []
categories: ["编程语言"]
slug: "as3"
draft: false
lastmod: "2011-06-21T17:21:17Z"
id: 1100110
url: "https://smartblack.iteye.com/blog/1100110"
---

public class Circle extends Sprite

{

public function Circle()

{

if (this\["constructor"] == "\[class Circle]") {

throw new ArgumentError("Error #2012: 无法实例化 Circle$ 类。");

}

init();

}

 

参考：[http://bbs.9ria.com/viewthread.php?tid=13292](http://bbs.9ria.com/viewthread.php?tid=13292)