- Information
- AI Chat
Was this document helpful?
Untitled document - Vishveshvarayya technological University - CSE
Course: Software Engineering (CS530)
376 Documents
Students shared 376 documents in this course
University: Visvesvaraya Technological University
Was this document helpful?
import java.util.*;
class Account{
String custName;
int accNo;
double balance;
String type_of_acccout;
Scanner i = new Scanner(System.in);
public void withdraw(double amount)
{
if(balance > amount)
balance -= amount;
else
System.out.println("Account has 0 or insufficient balance");
}
public void deposit(double amount)
{
balance += amount;
System.out.println(amount+"/- Rupees deposited successfully");
}
public void updateBal()
{
System.out.println("Updated Balace is : "+balance);
}
public void balance()
{
System.out.println("The Total Bank Balance is : "+ balance +"/-");
}
}
class CurrAcc extends Account{
int chequeBook;
int minBal = 100;
Random rand = new Random();
public void issueCheque()
{