Suppose
public class A
{
int a=5;
void sum()
{int a=5,b=5,c;
c=a+b;
}
}
public class B
{
int b=6;
void getmethod(string A,int a)
{
//code
}
}
So How can i do it?
Know the answer? Post it. Somebody with the same question will find it here.



Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted Aug 25, 2018, 8:12 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Aug 25, 2018, 6:55 AM EDT
Navjot AngraRank #2,900 · 496 reputationPosted Aug 25, 2018, 7:19 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Aug 25, 2018, 7:39 AM EDT