Yurttas/PL/OOL/CS/F/02/08/01/CompB.cs

From ZCubes Wiki
Revision as of 07:48, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="csharp" line start="1" enclose="div">/** * Copyright(C) 2010 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. * * ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 1/**
 2 *  Copyright(C) 2010
 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, 2010.
11 *  @author : Salih Yurttas.
12 */
13
14
15using System;
16
17namespace CompB
18{
19  public class CompB : ICompB
20  {
21    public void FOne(int inc)
22    {
23      Console.Write("-> A : ");
24      int A = Int32.Parse(Console.ReadLine());
25
26      A += inc;
27
28      Console.WriteLine("A = {0}", A);
29    }
30
31    public void FTwo(int inc)
32    {
33      Console.Write("-> B : ");
34      int B = Int32.Parse(Console.ReadLine());
35
36      B += inc;
37
38      Console.WriteLine("B = {0}", B);
39    }
40  }
41}