Yurttas/PL/OOL/Cplusplus/F/04/02/02/00/R.cpp
Jump to navigation
Jump to search
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 R.cpp
14*/
15
16
17#include "R.h"
18
19R::
20R(const int i,
21 const int j,
22 const int k) : Q(i,
23 j),
24 i3(k) {
25 cout << "--- R" << endl;
26}
27
28R::
29~R() {
30 cout << "R ---" << endl;
31}
32
33int
34R::
35get_i3() const {
36 return i3;
37}
38
39void
40R::
41set_i3(const int i) {
42 i3=i;
43}
44
45ostream&
46operator<<(ostream& os,
47 const R& r) {
48 os << r.i1 << endl;
49 os << r.i2 << endl;
50 os << r.i3 << endl;
51 os << endl;
52
53 return os;
54}