#include "arv6.h" Arv6::Arv6(void){ paneSisu(0); } Arv6::Arv6(int a){ paneSisu(a); } Arv6::~Arv6(void){ } void Arv6::kirjuta(void){ cout << n << endl; } void Arv6::paneSisu(int nr){ n=nr; } int Arv6::votaSisu(){ return n; } Arv6 Arv6::operator+(Arv6& a){ return Arv6(n+a.votaSisu()); }