function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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