Monday, 18 July 2011

Usage of Classes

'Usage of Classes

Class MyClass

Function Add1(a,b)

add1=a+b

End Function

Function sub1(a,b)

sub1=a-b

End Function

End Class


Set mat=New MyClass

val=mat.add1( 2,3)

msgbox val


val1=mat.sub1(5,3)

msgbox val1

No comments:

Post a Comment