turn the struct to a class

This commit is contained in:
Mylloon 2023-10-10 20:23:55 +02:00
parent db2cb996ac
commit d28c4552d4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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