15 Reputation Points
Ranked #2K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #107.49K
Re: /*Fast, I need to convert this code to java, thanks*/ class Cuenta(): def __init__(self,titular,cantidad=0): self.titular=titular self.__cantidad=cantidad @property def titular(self): return self.__titular @property def cantidad(self): return self.__cantidad @titular.setter def titular(self,titular): self.__titular=titular def mostrar(self): return "Cuenta\n"+"Titular:"+self.titular.mostrar()+" - Cantidad:"+str(self.cantidad) def ingresar(self,cantidad): if cantidad > 0: self.__cantidad = self.__cantidad + cantidad def retirar(self,cantidad): if … |