Yurttas/PL/OOL/CS/F/03/00/05/A00.cs
Jump to navigation
Jump to search
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 withConsole 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 A00
16{
17 public static void Main(string[] args)
18 {
19 A a0 = new A();
20
21 System.Console.WriteLine("i0 = {0}", a0.i0);
22 System.Console.WriteLine("i1 = {0}", a0.GetI1());
23 System.Console.WriteLine("i2 = {0}", a0.GetI2());
24
25 System.Console.WriteLine();
26
27 a0.OutI012();
28
29 System.Console.WriteLine();
30
31 a0.i0 = 3;
32 a0.SetI12(7);
33
34 int[] ia = new int[3];
35 ia = a0.GetI012();
36
37 int n = ia.Length;
38 for(int i=0; i<n; ++i)
39 System.Console.WriteLine("i{0} = {1}", i, ia[i]);
40 }
41}