base_types.adb 1/6
[top][prev][next]
package body base_types is
( ) return int( ) ) return intbegin
end base_types;
base_types.ads 2/6
[top][prev][next]
package base_types is
-- Abstract
type Base is tagged record
-- Attributes
-- public:
static dummy: int;
-- private:
x: int;
end record;
-- Operations
-- public:
virtual function foo ( a: int := 0 ) return int = 0;
-- protected:
virtual function bar ( x: int := 0, ) y: int := 0 ) return int = 0;
end base_types;
derived_types.adb 3/6
[top][prev][next]
package body derived_types is
function foo ( a: int := 0 ) return int is
begin
end foo;
function newfoo return int is
begin
end newfoo;
function otherfoo return int is
begin
end otherfoo;
function bar ( x: int := 0, ) y: int := 0 ) return int is
begin
end bar;
begin
end derived_types;
derived_types.ads 4/6
[top][prev][next]
with pureabstract_types;
use pureabstract_types
with base_types;
use base_types
package derived_types is
type Derived is new Base with record, type Derived is new PureAbstract with record
-- Attributes
end record;
-- Operations
-- public:
function foo ( a: int := 0 ) return int;
static function newfoo return int;
function otherfoo return int;
-- protected:
function bar ( x: int := 0, ) y: int := 0 ) return int;
end derived_types;
pureabstract_types.adb 5/6
[top][prev][next]
package body pureabstract_types is
return intbegin
end pureabstract_types;
pureabstract_types.ads 6/6
[top][prev][next]
package pureabstract_types is
-- Interface
type PureAbstract is tagged record
-- Attributes
end record;
-- Operations
-- public:
virtual function otherfoo return int = 0;
end pureabstract_types;
Generated by GNU enscript 1.6.1.