Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name |
. (dot) |
| Examples |
// Declare and contruct two objects (h1, h2) from the class HLine
HLine h1 = neus HLine(20, 1.0);
HLine h2 = neus HLine(50, 5.0);
Programmteil wo_am_afang_gmacht_wird() bitte
Feischtergroessi(200, 200);
danke
Programmteil wo_immerwider_gmacht_wird() bitte
waen(h2.speed > 1.0) bitte
h2.speed -= 0.01;
danke
h1.update();
h2.update();
danke
class HLine bitte
Komazahl ypos, speed;
HLine (Komazahl y, Komazahl s) bitte
ypos = y;
speed = s;
danke
Programmteil update() bitte
ypos += speed;
if (ypos > Feischterbreiti) bitte
ypos = 0;
danke
Linie(0, ypos, Feischterbreiti, ypos);
danke
danke |
| Description |
Provides access to an object's methods and data. An object is an instance of a class and contains is a grouping of methods (object functions) and data (object variables and constants). The dot operator directs the program to the information encapsulated within an object. |
| Syntax |
object.method()object.data |
| Parameters |
| Obiekt |
the Obiekt you want to access |
| method() |
method encapsulated in the object |
| data |
variable or constant encapsulated in the object |
|
| Usage |
Web & Application |
| Related |
Obiekt
|
Stefan Baltensperger 2009