update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
15
Task/Abstract-type/Cache-ObjectScript/abstract-type-1.cos
Normal file
15
Task/Abstract-type/Cache-ObjectScript/abstract-type-1.cos
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Class Abstract.Class.Shape [ Abstract ]
|
||||
{
|
||||
Parameter SHAPE = 1;
|
||||
Property Name As %String;
|
||||
Method Description() {}
|
||||
}
|
||||
|
||||
Class Abstract.Class.Square Extends (%RegisteredObject, Shape)
|
||||
{
|
||||
Method Description()
|
||||
{
|
||||
Write "SHAPE=", ..#SHAPE, !
|
||||
Write ..%ClassName()_$Case(..%Extends(..%PackageName()_".Shape"), 1: " is a ", : " is not a ")_"shape"
|
||||
}
|
||||
}
|
||||
14
Task/Abstract-type/Cache-ObjectScript/abstract-type-2.cos
Normal file
14
Task/Abstract-type/Cache-ObjectScript/abstract-type-2.cos
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Class Abstract.DataType.Shape [ ClassType = datatype ]
|
||||
{
|
||||
Parameter SHAPE = 1;
|
||||
Method Description() {}
|
||||
}
|
||||
|
||||
Class Abstract.DataType.Square Extends (%RegisteredObject, Shape)
|
||||
{
|
||||
Method Description()
|
||||
{
|
||||
Write "SHAPE=", ..#SHAPE, !
|
||||
Write ..%ClassName()_$Case(..%Extends(..%PackageName()_".Shape"), 1: " is a ", : " is not a ")_"shape"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue