Difference between revisions of "Yurttas/PL/OOL/CS/F/04/01/05/A.cs"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2003 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...")
 
(No difference)

Latest revision as of 08:06, 7 November 2013

 1/**
 2 *  Copyright(C) 2003
 3 *  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4 *
 5 *  Permission to use, copy, modify, and distribute this
 6 *  software and its documentation for EDUCATIONAL purposes
 7 *  and without fee is hereby granted provided that this
 8 *  copyright notice appears in all copies.
 9 *
10 *  @date   : September 1, 2003.
11 *  @author : Salih Yurttas.
12 */
13
14
15public class A : IA
16{
17  private int i0;
18
19  public A()
20  {
21    i0 = 0;
22  }
23
24  public int I0
25  {
26    get
27    {
28      return i0;
29    }
30    set
31    {
32      i0 = value;
33    }
34  }
35
36  public void MA1(int i)
37  {
38    i0 = 2*i;
39  }
40
41  public int MA2()
42  {
43    return i0;
44  }
45}