Digital Assignment: Banking - Java (Interface)
Digital Assignment: Banking - Java (Interface)
Name: pranay.y
QUESTION:
Write a program(s) in Java that illustrates the following concepts. The concepts can be applied to any
practical scenario such as student administration system or software which maintains various
information about students and provides various services to the users. The other scenarios may
include retail business management software, banking systems, railway reservation system, online
shopping applications, environmental monitoring system etc.
Method overloading
Inheritance
Interfaces
Code
Banking.java (Interface)
import java.rmi.*;
import java.util.*;
public void deposit(int accnt,int amt)throws RemoteException; public void withdraw(int accnt,int
amt)throws RemoteException; public int inquiry(int accnt)throws RemoteException;
{return x+y;}
acbalance.put(accnt, temp);
import java.util.*;
while(1==1)
stub.deposit(ac,amount);
case 2:
case 3:
default:
if (ex==1) break;
catch(Exception e){}
}
output