Created
September 2, 2019 17:54
-
-
Save parzibyte/14e9b37e6795ca212905aa261b6f1c6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Producto { | |
private String codigo, nombre; | |
private float precio; | |
public Producto() { | |
} | |
public Producto(String codigo, String nombre, float precio) { | |
this.codigo = codigo; | |
this.nombre = nombre; | |
this.precio = precio; | |
} | |
public String getCodigo() { | |
return codigo; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment