+ Start a Discussion
srikanth j 24srikanth j 24 

Apex class class A calling From Class B

Hi guys,
I am new to coding
i have 1 requirement can anyone give me a solution for this 
create a apex class 'A'(create a method called passacc parameter type acc) insert 2 account records and pass that account to class 'B' .
in class b
i)i need to display all accounts
ii)create contact.
Advance Thanks