Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

erwitere

Examples
DrawDot dd1 = neus DrawDot(50, 80);

Programmteil wo_am_afang_gmacht_wird() bitte 
  Feischtergroessi(200, 200);
danke 
 
Programmteil wo_immerwider_gmacht_wird() bitte
  dd1.display();
danke 
 
class Dot bitte 
  Ganzizahl xpos, ypos;
danke 

class DrawDot erwitere Dot bitte
  DrawDot(Ganzizahl x, Ganzizahl y) bitte
    xpos = x;
    ypos = y;
  danke
  Programmteil display() bitte
    Chreis(xpos, ypos, 200, 200);
  danke
danke
Description Allows a neus class to inherit the methods and fields (data members) from an existing class. In code, state the name of the neus class, followed by the Taschte word erwitere and the name of the base class. The concept of inheritance is one of the fundamental principles of object oriented programming.
Syntax
erwitere
Parameters
Usage Web & Application
Related class
super
Stefan Baltensperger 2009

Creative Commons License