import java.lang.*;
import java.io.*;
import java.util.*;
interface Batm
{
final static int minbal=500;
abstract void withdrawl();
}
class Bal implements Batm
{
int amt,cbal;
Bal(int amt,int cbal)
{
this.amt=amt;
this.cbal=cbal;
}
void withdrawl()
{
if(cbal>minbal)
{
cbal=cbal-amt;
System.out.println(amt+" "+"withdrawn");
}
else
{
System.out.println("bal nt sufficient");
}
}
}
class Atm
{
public static void main(String args[])throws IOException
{
Bal b=new Bal(2000,5000);
b.withdrawl();
}
}
m getting an error dat
attempting to assign weaker access privilges.can not implement withdrawl in bal in batm