Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Producto:
- def __init__(self, numero_producto, nombre_producto, cantidad_existente, precio_por_unidad):
- self.numero_producto = numero_producto
- self.nombre_producto = nombre_producto
- self.cantidad_existente = cantidad_existente
- self.precio_por_unidad = precio_por_unidad
- def getNombre(self):
- return self.nombre_producto
- def setNombre(self, nombre_producto):
- self.nombre_producto = nombre_producto
- def getNumero(self):
- return self.numero_producto
- def setNumero(self, numero_producto):
- self.numero_producto = numero_producto
- def getCantidad(self):
- return self.cantidad_existente
- def setCantidad(self, cantidad_existente):
- self.cantidad_existente = cantidad_existente
- def getPrecio(self):
- return self.precio_por_unidad
- def setPrecio(self, precio_por_unidad):
- self.precio_por_unidad = precio_por_unidad
- def getInformacion(self):
- informacion = "%i\t\t%s\t\t%i\t\t%f" % (self.numero_producto, self.nombre_producto, self.cantidad_existente, self.precio_por_unidad)
- return informacion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement