i am trying to write a code that stimulates an simple ATM. i have two class, one for the Bank Account and another for the ATM itself.
public BankAccount(String name1, int acctNum, int pinNum ){
name = name1;
accountNumber = acctNum;
pinNumber = pinNum;
balance = 100.00;
}
public ATM(){
start();
}
but there is an error in the ATM constructor. it says that 'Implicit super constructor BankAccount() is undefined. Must explicitly invoke another constructor'.
can any one explain this to me? thanks.