init-projects/cpp/includes/Example.hpp

18 lines
388 B
C++
Raw Normal View History

2023-09-19 11:39:57 +02:00
#ifndef PROJECT_EXAMPLE_HPP
#define PROJECT_EXAMPLE_HPP 1
#include <iostream>
2023-10-10 20:23:55 +02:00
class Example {
2023-10-10 20:24:40 +02:00
friend std::ostream &operator<<(std::ostream &, const Example &);
2023-10-10 20:23:55 +02:00
public:
2023-10-10 18:14:28 +02:00
Example(); // constructor
virtual ~Example(); // destructor
2023-10-10 19:04:43 +02:00
Example(const Example &); // copy constructor
const Example &operator=(const Example &); // copy assignement
2023-09-19 11:39:57 +02:00
};
#endif