Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Online Java Compiler By
JavaTpoint.com
class Account{ int acc_no; String name; float amount; void insert(int a,String n,float amt){ acc_no=a; name=n; amount=amt; } void deposit(float amt){ amount=amount+amt; System.out.println(amt+" deposited"); } void withdraw(float amt){ if(amount
Output