Yurttas/PL/OOL/CS/F/04/00/AA.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 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
15using System;
16
17public class AA : A
18{
19 private int j1;
20
21 public AA() : base()
22 {
23 j1 = 5;
24 }
25
26 public AA(int i1,
27 int i2,
28 int j1) : base(i1,i2)
29 {
30 this.j1 = j1;
31 }
32
33 public int J1
34 {
35 get
36 {
37 return j1;
38 }
39 set
40 {
41 j1 = value;
42 }
43 }
44
45 public new void MA1(int i)
46 {
47 I1 += i*2;
48 I2 -= i*2;
49 J1 = i;
50 }
51
52 public new void Output()
53 {
54 base.Output();
55
56 Console.WriteLine(j1);
57
58 Console.WriteLine();
59 }
60}