Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Prov
- {
- public class A
- {
- public int a=2, b=3;
- public int c
- {
- get
- {
- do
- {
- a = a + a;
- --b;
- }
- while
- (a < 30);
- return
- (a - b);
- }
- set
- {
- c = value;
- }
- }
- }
- class programm
- {
- public static void Main()
- {
- A myB = new A();
- Console.WriteLine(myB.c);
- Console.ReadLine();
- }
- }
- public class B : A
- {
- public B() : base() { }
- }
- }
Add Comment
Please, Sign In to add comment