Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Prov
- {
- public class A
- {
- public long a = 30, b = 5, i = 0;
- public long c
- {
- get
- {
- a += a;
- --b;
- i++;
- return
- i*(a - b);
- }
- set
- {
- c = value;
- }
- }
- }
- class programm
- {
- public static void Main()
- {
- B myB = new B();
- //Console.WriteLine(myB);
- Console.ReadLine();
- }
- }
- public class B : A
- {
- public B() : base()
- {
- int[] mass = new int[a];
- foreach (int i in mass) Console.WriteLine(c);
- }
- }
- }
Add Comment
Please, Sign In to add comment