63 812
Assignments Done
99,5%
Successfully Done
In August 2018

Answer to Question #38249 in C# for Yikwun

Question #38249
How do I run a subprogram from a different class
Expert's answer
Make sure that the method from another class is public.
If the target method is static - you can use OtherClass.OtherMethod(); to execute it.
If not - you have to create an object of this class, to have access to its methods:
OtherClass MyObj = new OtherClass();
MyObj.OtherMethod();

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions