Skip to content

Conversation

@joseluispuentes82
Copy link

No description provided.


private int numeroDeRuedas;
private String matricula;
private String matricula = "7777 BBB";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Este magic number no se puede poner ya

return true;
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Estos espacios verticales sobran


public class Ejemplo {

public static void main(String[] args) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limpia ya el main para que haga lo que quieres y que no vaya conviertiéndose en un cementerio de código viejo comentado

super(modelo, color);
}

public Moto() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ojo con la indentación. Revísa que esté todo bien formateado antes de subir. Puede que en tu Eclipse se vea bien porque trate igual los espacios y los tabuladores, pero mira cómo queda en github

return (getModelo() == null ? MODELO_NO_DISPONIBLE : getModelo())
// return getModelo()
+ " (" + color + ") " + modelo;
return modelo + " (" + getColor() + ")";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefería que se viese otra forma de hacerlo controlando el getter

public VehiculoConRuedas(String modelo, String color) {
super(modelo, color);
}
@Override
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falta antes un espacio vertical

@Awes0meM4n
Copy link
Contributor

Te he hecho unos comentarios para que mejores el código.
Antes de hacer el PR debes poner en el comentario qué aportan los cambios. Se puede usar markdown como sabes así que puedes hacer una lista o hacer referencia a otro sitio con los enlaces.
Si corriges lo de los comentarios puedo aceptar el PR.

Copy link
Author

@joseluispuentes82 joseluispuentes82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cambios

  1. He corregido los detalles que me has sugerido.
  2. Como había avanzado con el blog y había implementado alguna interfaz también las he compartido.
  3. he borrado mucho codigo viejo, que guardaba por defecto...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants