tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
18
Task/Polymorphism/Ada/polymorphism-3.ada
Normal file
18
Task/Polymorphism/Ada/polymorphism-3.ada
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package Shapes.Circles is
|
||||
type Circle is new Point with private;
|
||||
procedure Print(Item : Circle);
|
||||
function Setx(Item : Circle; Val : Integer) return Circle;
|
||||
function Sety(Item : Circle; Val : Integer) return Circle;
|
||||
function Setr(Item : Circle; Val : Integer) return Circle;
|
||||
function Getr(Item : Circle) return Integer;
|
||||
function Create(P : Point) return Circle;
|
||||
function Create(P : Point; R : Integer) return Circle;
|
||||
function Create(X : Integer) return Circle;
|
||||
function Create(X : Integer; Y : Integer) return Circle;
|
||||
function Create(X : Integer; Y : Integer; R : Integer) return Circle;
|
||||
function Create return Circle;
|
||||
private
|
||||
type Circle is new Point with record
|
||||
R : Integer := 0;
|
||||
end record;
|
||||
end Shapes.Circles;
|
||||
Loading…
Add table
Add a link
Reference in a new issue