Abstracto
3GL
Design L.P.
Asociación entre 2 cosas
Name
lo que nombra
Binding Timelife
Object Timeline
No necesariamente ocurren al mismo tiempo
#include <iostream>
using namespace std;
double & foo()
{
double n = 12.4;
double &ref = n;
return ref;
}
double * foo2()
{
double n = 12.4;
double *ref = &n;
return ref;
}
double foo3()
{
double n = 12.4;
return n;
}
int main()
{
double x = foo();
cout << x << endl;
double *y = foo2();
x = *y;
cout << x << endl;
x = foo3();
cout << x << endl;
return 0;
}
Fortran
manifest constants o compile-time-constants.
Caso de Ada , C, C#
elaborate-time-constants
Prologo
Epilogo
frame pointer
displacement addresing