You need to sign in to do that
Don't have an account?
Deepu sfdc
how to access methods from other class ?
Hi,
I have Employee class and its having 4 methods.. i have another class name is Manager. So i want to access Employee class methods in Manager class . can you tell me how to achieve this ?
I have Employee class and its having 4 methods.. i have another class name is Manager. So i want to access Employee class methods in Manager class . can you tell me how to achieve this ?
Create an instance for the first class in second class. For example
If the first class is static class you can directly access that method using class name. For example
Hope this helps you!
Please mark the answer as Best Answer if it really helped so that it would help others as well in future.
Best Regards,
Jyothsna
All Answers
Create an instance for the first class in second class. For example
If the first class is static class you can directly access that method using class name. For example
Hope this helps you!
Please mark the answer as Best Answer if it really helped so that it would help others as well in future.
Best Regards,
Jyothsna