Yurttas/PL/OOL/Cplusplus/F/05/01/02/00/I A.h

Revision as of 22:39, 6 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="cpp" line start="1" enclose="div">/* Copyright(C) 1998 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc.. Perm...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 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   I_A.h
14*/
15
16
17#include <iostream>
18
19using namespace std;
20
21class I_A {
22public:
23  I_A();
24
25  I_A(const I_A&);
26
27  I_A& operator=(const I_A&);
28
29  virtual ~I_A();
30
31  virtual int get_s() const;
32
33  virtual int get_d(const int) const;
34
35  virtual int* get_d() const;
36
37  virtual void set_d(const int size=0,
38                     const int value=0);
39
40  friend ostream& operator<<(ostream&,
41                             const I_A&);
42
43protected:
44  int s;
45  int* d;
46};