Yurttas/PL/OOL/CS/F/06/00/02/TA01.cs

Revision as of 08:11, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2004 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 1/**
 2 *  Copyright(C) 2004
 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, 2004
11 *  @author : Salih Yurttas
12 *
13 */
14
15
16using System;
17
18namespace ID
19{
20
21  public class TA01
22  {
23    public static void Main(string[] args)
24    {
25      TA<double,
26         double> o1 = new TA<double,
27                             double>(2,
28                                     2);
29
30      Console.WriteLine("o1 -");
31      Console.WriteLine(o1.A0);
32      Console.WriteLine(o1.A1);
33      Console.WriteLine();
34
35      o1.A0 = 4;
36      o1.A1 = 7;
37
38      Console.WriteLine("o1 -");
39      Console.WriteLine(o1.A0);
40      Console.WriteLine(o1.A1);
41
42      TA<double,
43         double> o2 = new TA<double,
44                             double>(3,
45                                     1);
46
47      Console.WriteLine("\no2 -");
48      Console.WriteLine(o2.A0);
49      Console.WriteLine(o2.A1);
50    }
51  }
52
53}