using System;
namespace c.biancheng.net
{
class HaHa
{
public int Ha(int g)
{
int[] b=new int[g];
int n=1;
for(int i=0;i<g;i++)
{
b[i] = Convert.ToInt32(Console.ReadLine());
n*=b[i];
}
return n;
}
}
class _Int
{
private int a=0;
public int A
{
get
{
return a;
}
set
{
a=value;
}
}
private _Int()
{
Console.WriteLine("子类以调用!");
}
public _Int(int a)
{
this.a=a;
Console.WriteLine("_Int类开始使用!");
}
public void showpsA()
{
Console.WriteLine("a={0},a*3={1}",a,a*3);
}
public void showpA()
{
Console.WriteLine("a={0}",a);
}
}
class _Ints
{
private int b=0;
public int B
{
get
{
return b;
}
set
{
b=value;
}
}
}
class Program
{
static void Main(string[] args)
{
_Int _int =new _Int(10);
_Ints _ints =new _Ints();
HaHa haha =new HaHa();
_int.showpA();
_int.A = Convert.ToInt32(Console.ReadLine());
_int.showpsA();
_ints.B=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("n={0}",haha.Ha(_ints.B));
Console.ReadKey();
}
}
}