Here is a piece of code which using class in vbs, to add numbers 2 and 3:-
Call a2()
Class a1
Private Function add2()
msgbox 2+3
End Function
Function add1()
Call add2()
End Function
End Class
Function a2()
Set a2=new a1
a2.add1
End Function
'Save the above code in text file and save as ".vbs"
Call a2()
Class a1
Private Function add2()
msgbox 2+3
End Function
Function add1()
Call add2()
End Function
End Class
Function a2()
Set a2=new a1
a2.add1
End Function
'Save the above code in text file and save as ".vbs"
No comments:
Post a Comment