View difference between Paste ID: 65AMDKb6 and XsXSyNXY
SHOW: | | - or go back to the newest paste.
1
using System;
2
3
namespace Prov
4
{
5
    public class A
6
    {
7
        public long a = 30, b = 5, i = 0;
8
        public long c
9
        {
10
            get
11
            {
12
                a += a;
13
                --b;
14
                i++;  
15
                return
16
                    i*(a - b);
17
            }
18
            set
19
            {
20
                c = value;
21
            }
22
        }
23
    }
24
    class programm
25
    {
26
        public static void Main()
27
        {
28
            B myB = new B();
29
            //Console.WriteLine(myB);
30
            Console.ReadLine();
31
        }
32
    }
33
    public class B : A
34
    {
35
        public B() : base()
36
        {
37
            int[] mass = new int[a];
38
            foreach (int i in mass) Console.WriteLine(c);
39
        }
40
    }
41
}