#include using std::cout; using std::endl; #include "Cane.h" int main() { Cane Fido(2,15.); Cane Bobi(4,30.); cout << "Bobi ha " << Bobi.getAnni() << " anni." << endl; cout << "Pesa " << Bobi.getPeso() << " Kg." << endl; cout << endl; cout << "Cambiamo il peso di Bobi" << endl; Bobi.setPeso(10); cout << "Bobi ha " << Bobi.getAnni() << " anni." << endl; cout << "Pesa " << Bobi.getPeso() << " Kg." << endl; cout << endl; cout << "Fido ha " << Fido.getAnni() << " anni." << endl; cout << "Pesa " << Fido.getPeso() << " Kg." << endl; cout << endl; cout << "Fido diventa un clone di Bobi" << endl; Fido = Bobi; cout << "Fido ha " << Fido.getAnni() << " anni." << endl; cout << "Pesa " << Fido.getPeso() << " Kg." << endl; cout << endl; Fido.parla(); Bobi.parla(); return 0; }