Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,5 +0,0 @@
|
|||
package Multiple_Interfaces is
|
||||
type Camera is tagged null record;
|
||||
type Mobile_Phone is limited Interface;
|
||||
type Camera_Phone is new Camera and Mobile_Phone with null record;
|
||||
end Multiple_Interfaces;
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
CLASS-ID. Camera.
|
||||
*> ...
|
||||
END CLASS Camera.
|
||||
|
||||
IDENTIFICATION DIVISION.
|
||||
CLASS-ID. Mobile-Phone.
|
||||
*> ...
|
||||
END CLASS Mobile-Phone.
|
||||
|
||||
IDENTIFICATION DIVISION.
|
||||
CLASS-ID. Camera-Phone
|
||||
INHERITS FROM Camera, Mobile-Phone.
|
||||
ENVIRONMENT DIVISION.
|
||||
CONFIGURATION SECTION.
|
||||
REPOSITORY.
|
||||
CLASS Camera
|
||||
CLASS Mobile-Phone.
|
||||
|
||||
*> ...
|
||||
END CLASS Camera-Phone.
|
||||
|
|
@ -15,10 +15,10 @@ class CameraPhone : MobilePhone
|
|||
dispatch() => CameraFeature;
|
||||
}
|
||||
|
||||
public program()
|
||||
public Program()
|
||||
{
|
||||
var cp := new CameraPhone();
|
||||
|
||||
console.writeLine(cp.cameraMsg);
|
||||
console.writeLine(cp.mobileMsg)
|
||||
Console.writeLine(cp.cameraMsg);
|
||||
Console.writeLine(cp.mobileMsg)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ singleton CameraPhone
|
|||
new() = new MobilePhone().mixInto(new CameraFeature());
|
||||
}
|
||||
|
||||
public program()
|
||||
public Program()
|
||||
{
|
||||
var cp := CameraPhone.new();
|
||||
|
||||
console.writeLine(cp.cameraMsg);
|
||||
console.writeLine(cp.mobileMsg)
|
||||
Console.writeLine(cp.cameraMsg);
|
||||
Console.writeLine(cp.mobileMsg)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
class Camera {}
|
||||
class MobilePhone {}
|
||||
class CameraPhone : Camera, MobilePhone {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue