Yurttas/PL/OOL/CS/F/02/08/00/A02.cs

From ZCubes Wiki
Jump to navigation Jump to search
 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   : January 1, 2004.
11 *  @author : Salih Yurttas.
12 */
13
14
15using System;
16
17namespace SYOne
18{
19    class A02
20    {
21        static void Main(string[] args)
22        {
23          A A1 = new A();
24
25          Console.WriteLine("SYOne");
26
27          A1.printA();
28        }
29    }
30
31    class A
32    {
33        private int p = 2;
34        private int q = 8;
35
36        public A() {}
37
38        public void printA()
39        {
40            Console.WriteLine("\np = {0}, q = {1}", p, q);
41        }
42    }
43}