English
Forum

OOP - Verebung and New

 

Jörg
Sellmeyer
Hi,
These OOP - story wants only so gaaanz laangsaaam in my Hirn

in the momentum understand I The Heredity not so integrally.
CompileMarkSeparation
Class MeineKlasse = X%, Y%, MeineKlasse@

Proc MeineKlasse.MeineKlasse

    Parameters A%, B%
    .X% = A%
    .Y% = B%

EndProc

Class NeueKlasse = MeineKlasse,
getX@

Proc NeueKlasse,getX

    Return .X%

EndProc

Declare MeinObjekt#
MeinObjekt# = @New(NeueKlasse,5,10)
MeinObjekt# = @New(MeineKlasse,5,10)funktioniert auch nicht
print MeinObjekt#.getX()
waitinput

the not working, but Why not and How should it correctly. his???

Greeting
Jörg
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/28/06  
 



Proc Neueklasse,Getx <-- there's one comma!
 
09/28/06  
 




Jörg
Sellmeyer
[quote:0125e0884f=iF]Proc Neueklasse,Getx <-- there's one comma! [/quote:0125e0884f]
is correct. nevertheless becomes only 0 outputted. who can tell More?
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/28/06  
 




RGH
Hi,
the new class missing the Konstruktor! The new class has of course The method MeineKlasse geerbt, these becomes but not automatically as Konstruktor akin. Füge means a Konstruktor hinzu, and it klaptt, How desired:
CompileMarkSeparation
naturally must the Konstruktor too in the Klassendefinition of NeueKlasse vorkommen.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
09/28/06  
 



[quote:b647b5f352=Jörg Sellmeyer][quote:b647b5f352=iF]Proc Neueklasse,Getx <-- there's one comma! [/quote:b647b5f352]
is correct. nevertheless becomes only 0 outputted. who can tell More?[/quote:b647b5f352]
additionally missing the Konstruktor.

Nachtrag: Roland was faster.
 
09/28/06  
 




Jörg
Sellmeyer
[quote:21c16a98b3=RGH]Hello,
the new class missing the Konstruktor! The new class has of course The method MeineKlasse geerbt, these becomes but not automatically as Konstruktor akin. Füge means a Konstruktor hinzu, and it klaptt, How desired:
CompileMarkSeparation
naturally must the Konstruktor too in the Klassendefinition of NeueKlasse vorkommen.

Greeting
Roland[/quote:21c16a98b3]
thanks! Related to the Konstruktor I had me already virtual, but my try were erfolglos stayed.
the yet as example into Help and The next stand not integrally so leave there.
too with the the .super. understand I do not.
where should the How eingefügt go?? A small Codebeispiel in the Help would the whole still very vereinfachen.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/28/06  
 




Michael
Wodrich
the .super should you a überschirebene method again zugänglich make.
If you z.B. in Meineklasse and Neueklasse a method namens TueEtwas have, then
CompileMarkSeparation
Best wishes
Michael Wodrich
 
Programmieren, das spannendste Detektivspiel der Welt.
09/28/06  
 




Jörg
Sellmeyer
Aaha, thanks!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
09/28/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.625 Views

Untitledvor 0 min.

Themeninformationen



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