# Python program to create Bankaccount class 
 
class Bank_Account: 

    def __init__(self): 

        self.balance=0

        print(" Welcome to our Bank  ") 

  

    def deposit(self): 

        amount=float(input("Enter amount to be Deposited: ")) 

        self.balance += amount 

        print("\n Amount Deposited:",amount) 

  

    def withdraw(self): 

        amount = float(input("Enter amount to be Withdrawn: ")) 

        if self.balance>=amount: 

            self.balance-=amount 

            print("\n Your withdrawal:", amount) 

        else: 

            print("\n Insufficient balance  ") 

  

    def display(self): 

        print("\n Net Balance=",self.balance) 

  
# Driver code 

   
# creating an object of class 

s = Bank_Account() 

   
# Calling functions with that class object 
s.deposit() 
s.withdraw() 
s.display() 

#To use inheritance in ecommerce concept
#parent class
class Description:              
    description_name_1 = "This is brought to you by "
  
    #child class
class Products(Description):       
    prod_1 = "Union Bank Of India"
    
obj_1 = Products()          
print(obj_1.description_name_1 +obj_1.prod_1)

099dae409f32f446bca72a002ffc52bc697b482a
class Bank_Account:

    def __init__(self):
        self.balance = 0
        print(' Welcome to our Bank  ')
    <mask token>
    <mask token>
    <mask token>


<mask token>


class Description:
    description_name_1 = 'This is brought to you by '


class Products(Description):
    prod_1 = 'Union Bank Of India'


<mask token>

class Bank_Account:

    def __init__(self):
        self.balance = 0
        print(' Welcome to our Bank  ')
    <mask token>
    <mask token>

    def display(self):
        print('\n Net Balance=', self.balance)


<mask token>


class Description:
    description_name_1 = 'This is brought to you by '


class Products(Description):
    prod_1 = 'Union Bank Of India'


<mask token>

class Bank_Account:

    def __init__(self):
        self.balance = 0
        print(' Welcome to our Bank  ')

    def deposit(self):
        amount = float(input('Enter amount to be Deposited: '))
        self.balance += amount
        print('\n Amount Deposited:', amount)
    <mask token>

    def display(self):
        print('\n Net Balance=', self.balance)


<mask token>


class Description:
    description_name_1 = 'This is brought to you by '


class Products(Description):
    prod_1 = 'Union Bank Of India'


<mask token>

class Bank_Account:

    def __init__(self):
        self.balance = 0
        print(' Welcome to our Bank  ')

    def deposit(self):
        amount = float(input('Enter amount to be Deposited: '))
        self.balance += amount
        print('\n Amount Deposited:', amount)

    def withdraw(self):
        amount = float(input('Enter amount to be Withdrawn: '))
        if self.balance >= amount:
            self.balance -= amount
            print('\n Your withdrawal:', amount)
        else:
            print('\n Insufficient balance  ')

    def display(self):
        print('\n Net Balance=', self.balance)


s = Bank_Account()
s.deposit()
s.withdraw()
s.display()


class Description:
    description_name_1 = 'This is brought to you by '


class Products(Description):
    prod_1 = 'Union Bank Of India'


obj_1 = Products()
print(obj_1.description_name_1 + obj_1.prod_1)

# Python program to create Bankaccount class 
 
class Bank_Account: 

    def __init__(self): 

        self.balance=0

        print(" Welcome to our Bank  ") 

  

    def deposit(self): 

        amount=float(input("Enter amount to be Deposited: ")) 

        self.balance += amount 

        print("\n Amount Deposited:",amount) 

  

    def withdraw(self): 

        amount = float(input("Enter amount to be Withdrawn: ")) 

        if self.balance>=amount: 

            self.balance-=amount 

            print("\n Your withdrawal:", amount) 

        else: 

            print("\n Insufficient balance  ") 

  

    def display(self): 

        print("\n Net Balance=",self.balance) 

  
# Driver code 

   
# creating an object of class 

s = Bank_Account() 

   
# Calling functions with that class object 
s.deposit() 
s.withdraw() 
s.display() 

#To use inheritance in ecommerce concept
#parent class
class Description:              
    description_name_1 = "This is brought to you by "
  
    #child class
class Products(Description):       
    prod_1 = "Union Bank Of India"
    
obj_1 = Products()          
print(obj_1.description_name_1 +obj_1.prod_1)
