• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

How to create New Method ?

Experts,
Which one is the correct answer for below mentioned question ?

Which of the following, statements will create a new method on Form1 that could be called outside of Form1's code module ?

1)Public NewMethod() as New Method
2)Public Sub NewMethod()
3)Public Method NewMethod()
4)Public ?NewMethod()

Thanks,
bhavesh
0
bhavesh55
Asked:
bhavesh55
1 Solution
 
paulstampCommented:
Number 2 - there is no such keyword as method !
0
 
bhavesh55Author Commented:
2)Public sub NewMethod()
4)Public NewMethod()

Which one is true either 2 or 4 ?

thanks,
bhavesh
0
 
NancyShahCommented:
The correct answer is 2
0
 
wsh2Commented:
Ahhh.. finally a TWO/False question.. <flipping a coin>.. I'll go with Paulstamp !!!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now