Thirupathi v

Thirupathi v

  • NA
  • 61
  • 32.4k

About Constructor

Oct 29 2008 3:20 AM

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)