+ Start a Discussion
Shubham Sinha 49Shubham Sinha 49 

How to call another method from another method

I have a class 'Tabu_Controller' and it has method  getMDMSResult. I have another class "CreateAccount" and merthod name ''CreateUser".
Now i want to use getMDMSResult method in CreateUser method. How to call it.
Anil JAdhav 14Anil JAdhav 14
Hi Shubham,

If the methods are static then you can call as 
Class_Name.Method_Name(Parameters if any);
Example -
Tabu_Controller.getMDMSResult();

If the methods are not stanic then
Tabu_Controller tc = new Tabu_Controller();
tc.getMDMSResult();

Regards,
Anil