public void Atualizar(Trecho trecho) { Origem = trecho.Origem; Destino = trecho.Destino; DistanciaTotal = trecho.DistanciaTotal; }
public Trecho(Local origem, Local destino, double distanciaTotal) { this.Origem = origem; this.Destino = destino; this.DistanciaTotal = distanciaTotal; }