Files
harbour-core/tests/classch.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

53 lines
569 B
Plaintext

// Testing Harbour hbclass.ch commands
#include "hbclass.ch"
PROCEDURE Main()
LOCAL o := TTest():New( "one", "two" )
? o:ClassName()
? o:One
? o:Two
o:Test()
RETURN
// ;
CREATE CLASS TTest INHERIT TParent
VAR One, Two, Three
METHOD New( One, Two )
METHOD Test() INLINE QOut( "Hello" )
ENDCLASS
METHOD New( One, Two ) CLASS TTest
::super:New()
::One := One
::Two := Two
RETURN Self
// ;
CREATE CLASS TParent
VAR One
METHOD New()
ENDCLASS
METHOD New() CLASS TParent
? "TParent:New()"
RETURN Self