o
    œ$Õi  ã                   @   sr   G d d„ de ƒZeƒ Zede ¡ ƒ e d¡ ede ¡ ƒ edƒZede ¡ ƒ e d¡Zeded	e ¡ ƒ d
S )c                   @   s2   e Zd ZdZddd„Zdd„ Zdd„ Zd	d
„ ZdS )Úaccountz3
    Markus Hitz's first C++ example in Python
    é    c                 C   s
   || _ d S ©N©Úbalance)ÚthisÚstart© r   ú^/home/home4/elk27/public_html/courses/Languages/PythonExamples/python-lectures/code/account.pyÚ__init__   s   
zaccount.__init__c                 C   s   |  j |7  _ d S r   r   ©r   Úamountr   r   r	   Údeposit	   s   zaccount.depositc                 C   s4   | j |kr|  j |8  _ |S tdƒ | j }d| _ |S )NzYou are broke
g        )r   Úprintr   r   r   r	   Úwithdraw   s   
ýzaccount.withdrawc                 C   s   | j S r   r   )r   r   r   r	   Ú
getBalance   s   zaccount.getBalanceN)r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r   r   r	   r      s    
	r   zDefault balanceiè  zNew balanceg     ˆ³@zSecond constructorg     ˆÃ@zw =z, new balance acc2N)	Úobjectr   Úacc1r   r   r   Úacc2r   Úwr   r   r   r	   Ú<module>   s    

