1/*
2 Copyright(C) 1998
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, 1998.
11 authorĀ : Salih Yurttas.
12
13 A.cpp
14*/
15
16
17#include "A.h"
18
19A::
20A(const int i) : k(i) {
21}
22
23A::
24A(const A& a) : k(a.k) {
25}
26
27A&
28A::
29operator=(const A& a) {
30 k=a.k;
31}
32
33int
34A::
35get_k() const {
36 return k;
37}
38
39void
40A::
41set_k(const int i) {
42 k=i;
43}
44
45ostream&
46operator<<(ostream& os,
47 const A& a) {
48 os << endl;
49 os << a.k;
50 os << endl;
51
52 return os;
53}