Class Producto
- java.lang.Object
-
- Producto
-
public class Producto extends java.lang.Object
Representacion de un Producto en Sistema de Facturacion- Version:
- 1.0
- Author:
- G. Cherencio
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStock(int s)
java.lang.String
getDescr()
int
getIdp()
double
getPrecio()
int
getStock()
void
setDescr(java.lang.String descrip)
void
setIdp(int id)
void
setPrecio(double p)
-
-
-
Constructor Detail
-
Producto
public Producto()
Constructor for objects of class Producto
-
Producto
public Producto(int id)
-
Producto
public Producto(int id, java.lang.String descrip)
-
Producto
public Producto(int id, java.lang.String descrip, double p)
-
Producto
public Producto(int id, java.lang.String descrip, double p, int s)
-
-
Method Detail
-
getIdp
public int getIdp()
-
getDescr
public java.lang.String getDescr()
-
getPrecio
public double getPrecio()
-
getStock
public int getStock()
-
setIdp
public void setIdp(int id)
-
setDescr
public void setDescr(java.lang.String descrip)
-
setPrecio
public void setPrecio(double p)
-
addStock
public void addStock(int s)
-
-