// Testing Harbour classes.ch commands

This commit is contained in:
Antonio Linares
1999-07-12 14:26:14 +00:00
parent 8b8a4760bc
commit bf1bd7feb4

View File

@@ -0,0 +1,40 @@
// Testing Harbour classes.ch commands
#include "classes.ch"
//--------------------------------------------------------------------//
function Main()
local o := TTest():New( "one", "two" )
? o:ClassName()
? o:One
? o:Two
o:Test()
return nil
//--------------------------------------------------------------------//
CLASS TTest
DATA One, Two, Three
METHOD New( One, Two )
METHOD Test() INLINE QOut( "Hello" )
ENDCLASS
//--------------------------------------------------------------------//
METHOD New( One, Two ) CLASS TTest
::One = One
::Two = Two
return Self
//--------------------------------------------------------------------//