[Gambas-user] gambas inheritance en protected members
bp
bpnowhere at ...402...
Thu Jan 27 23:06:11 CET 2005
hello,
I don't really understand how gambas inheritance works.
I try to write this :
A first class with one member and one method which is named 'father'
' Gambas class file father
PUBLIC myvar AS Integer
PUBLIC FUNCTION test(var AS Integer) AS Boolean
RETURN FALSE
END
A second class named "son" which inherits from the first one
' Gambas class file
INHERITS father
PUBLIC FUNCTION test (var AS Integer) AS Boolean
RETURN ( var = myvar)
END
And the compilation aborts on the second class on myvar.
Can you help me ?
bp
More information about the User
mailing list