Design patterns are an abstract concept and a subject that involves being vague to help solve problems. This is somewhat ambiguous and makes design patterns a difficult topic. Fortunately, a difficult subject does not necessarily mean one that is co
package socket{ import flash.utils.ByteArray; public class IDEA{ public var ory:ByteArray; public var ary:Array; public var dekey:Array; public var enkey:Array; public function IDEA() { ary=new Array(); dekey=new Array(); enkey=new Array(); ory=new
一个就是使用继承。比方说,你可以先创建一个颜色处理器的类。 package{ public class colorProcessor{ public function setFillColor(color:uint):void{ } } } 然后,形状和文本就可以继承colorProcessor类了。 package{ public class shapeClass extends colorProcessor{ override public function setFillColor(co