Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
27
Task/Polymorphism/ActionScript/polymorphism-2.as
Normal file
27
Task/Polymorphism/ActionScript/polymorphism-2.as
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package {
|
||||
public class Circle extends Point
|
||||
{
|
||||
private var r:Number;
|
||||
|
||||
public function Circle(x:Number=0, y:Number=0, r:Number=0)
|
||||
{
|
||||
super(x, y);
|
||||
this.r = r;
|
||||
}
|
||||
|
||||
public function getR():Number
|
||||
{
|
||||
return r;
|
||||
}
|
||||
|
||||
public function setR(r:Number):void
|
||||
{
|
||||
this.r = r;
|
||||
}
|
||||
|
||||
public override function print():void
|
||||
{
|
||||
trace("Circle");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue