Ejercicio de POO1 - Ventas
Ejercicio de POO1 - Ventas
Ejercicio de POO1 - Ventas
import java.util.Scanner;
/**
*
* @author Estudiantes
*/
public class ventas {
//atributos
private String fecha, producto;
private int cantidad;
private int precio;
private int cod = 0;
//constructor
public ventas(){
}
public ventas(String f, String p, int cant, int valor){
this.cod++;
this.fecha=f;
this.producto=p;
this.cantidad=cant;
this.precio=valor;
}
ventas miventa=null;
ventas vector[] = new ventas[3];
break;
case 5:
for (int j=0; j<i; j++){
System.out.println(vector[j].mostrarVentas());
break;
}
}
}while (opc != 7);
}
}