English
Source / code snippets

demonstration Oop

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
OOP-Demo (1)
-Begin-----------------------------------------------------------------
-Class---------------------------------------------------------------
Class Hund = Name$(10),
Geburtsdatum$(10),
Rasse$(32),
Groesse%,
bellen@

Proc Hund.bellen

    Parameters text$
    Print text$

EndProc

-Main----------------------------------------------------------------
Declare Waldi#, Bello#
Dim Waldi#,Hund
Dim Bello#,Hund
Cls
Waldi#.Name$ = Waldi
Waldi#.Geburtsdatum$ = 10.01.1997
Waldi#.Rasse$ = Dackel
Waldi#.Groesse% = 35

With Bello#

    .Name$ = Bello
    .Geburtsdatum$ = 23.09.1985
    .Rasse$ = Bernhardiner
    .Groesse% = 65

EndWith

With Waldi#

    Print .Name$
    Print .Geburtsdatum$
    Print .Rasse$
    Print Str$(.Groesse%) +  cm
    .bellen(WauWau!)

EndWith

Print

With Bello#

    Print .Name$
    Print .Geburtsdatum$
    Print .Rasse$
    Print Str$(.Groesse%) +  cm
    .bellen(Knurr Kläff!)

EndWith

WaitInput
Dispose Waldi#
Dispose Bello#
-End-------------------------------------------------------------------
 href='./../../function-references/XProfan/end/'>End
 
07/16/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.515 Views

Untitledvor 0 min.
Gast.081508/25/24
Beginner01/14/13

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie