/* * Hyvin yksinkertainen esimerkki kopiorakentajan toiminnasta. */ #ifndef KAKSIKKO_H #define KAKSIKKO_H #include using namespace std; class Kaksikko{ public: Kaksikko(const Kaksikko& kopioitava); Kaksikko(const int a, const int b); int ensimainen(void) const; int toinen(void) const; void tulosta(void); private: static const int ALKIOIDEN_LKM = 2; static const int ENSIMAINEN = 0; static const int TOINEN = 1; int alkiot_[ALKIOIDEN_LKM]; }; #endif