2
Reply

About Constructor

Thirupathi v

Thirupathi v

Oct 29 2008 3:20 AM
2.8k

Hi Folks,

I am Beginner to C#. actually i attended the interview. they asking the question like that..

class A

{

public class A()

{

int a;

int b;

public int CalCum()

{

Return a+b;

}

}

in the above program a=10, b=20. i have few questions these are given below

1) How to call the constructor and pass the arguments?

2) How to use the arraylist in the program?

3) How to Pass the arguments by using Arraylist and show result?

Please help me. how to solve this secenrio? can anyone help for me

 

 


Answers (2)