Skip to content

Instantly share code, notes, and snippets.

@andreyv
Created Mar 19, 2017
Embed
What would you like to do?
TwoSteps
namespace TwoSteps
{
int a(int x)
{
return x * 2;
}
int b(int x)
{
return x + 3;
}
}
class TwoSteps {
static int a(int x) {
return x * 2;
}
static int b(int x) {
return x + 3;
}
}
unit TwoSteps;
interface
function a(x: integer): integer;
function b(x: integer): integer;
implementation
function a(x: integer): integer;
begin
a := x * 2;
end;
function b(x: integer): integer;
begin
b := x + 3;
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment