class bankaccountdef init (self,bal)self balance=bal def deposit(self,bal)self balance+=bal def withdraw(self,amount)if(self balance>=amount)self balance-=amount elseprint("insufficient amount in your account"import account #here account is the module contains bankaccount class #create object from bankaccount class savings=account bankaccount( #depositing amount dep=float(input("enter amount to deposit")savings deposit(dep#withdraw amount =float(input("enter the amount to withdraw")savings withdraw(wprint("the remaining balance in your account is:",savings balanceoutputthe __del__(method (garbage collectionthe init (method initializes an object instance variables similarly we havedel (method which will do the opposite work this method frees the memory of the object when ti is no longer needed and the freed memory is returned back to the system this process is known as "garbage collectionthis method is called automatically when an object is going out of the scope we can use "delstatement for deleting the object as shown in the program #defining class and creating the object class abcdef init (self, )self balance= def disp(self)emthod with self argument print("the amount is:",self balancedef del (self)print("this object is deleted from the memory"ob=abc( )ob disp(#callinf the del (method del ob #if you try to call the method disp it raises error ob disp(outputinheritance inheritance is the one of the most and essential concept of the object oriented programming it is the process by which one class acquires the properties from one or more classes here the properties are the data members page and member functions the new classes are created from the existing classes the newly created class is called "derivedclass the