#include "Contatto.h"
#include <iostream>

Contatto::Contatto(const string& nome, const string& tel, const string& indirizzo) :
  nome_( nome ), tel_( tel ), indirizzo_( indirizzo )
{
}

const string& Contatto::nome() const
{
  return nome_;
}

const string& Contatto::telefono() const
{
  return tel_;
}

const string& Contatto::indirizzo() const
{
  return indirizzo_;
}

void Contatto::stampa( ostream& o ) const
{
  o << nome() << " tel: " << telefono() 
    << " indirizzo: " << indirizzo() << endl;
}