turn the struct to a class
This commit is contained in:
parent
db2cb996ac
commit
d28c4552d4
1 changed files with 4 additions and 3 deletions
|
@ -3,14 +3,15 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
struct Example {
|
class Example {
|
||||||
|
friend std::ostream &operator<<(std::ostream &out, const Example &data);
|
||||||
|
|
||||||
|
public:
|
||||||
Example(); // constructor
|
Example(); // constructor
|
||||||
virtual ~Example(); // destructor
|
virtual ~Example(); // destructor
|
||||||
|
|
||||||
Example(const Example &); // copy constructor
|
Example(const Example &); // copy constructor
|
||||||
const Example &operator=(const Example &); // copy assignement
|
const Example &operator=(const Example &); // copy assignement
|
||||||
|
|
||||||
friend std::ostream &operator<<(std::ostream &out, const Example &data);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue