online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
public class Main{ String firstName; String lastName; int accountNumber; double accountBal; public Main(){ accountBal = 0.0; } public void setFirstName(String fstName){ firstName = fstName; } public String getFirstName(){ return firstName; } public void setLastName(String lstName){ lastName = lstName; } public String getLastName(){ return lastName; } public void setAccountNumber(int accNum){ accountNumber= accNum; } public int getAccounNumber(){ return accountNumber; } public double getAccountBal(double accbal){ return accountBal; } public void deposit(double depBal){ this.accountBal = this.accountBal + depBal; } public void withdraw(double withdrawBal){ if(withdrawBal <= this.accountBal){ this.accountBal = this.accountBal - withdrawBal; } else { System.out.println("You will be charged a $30 overdraft fee"); } } public void getAccountInfo(){ System.out.println("This is your account information: " + firstName + " " +lastName + " \n Account Number: " + accountNumber + "\n Account Balance: " + accountBal); } }
public class AccountSummary extends Main{ //super(); public void moneyWithdrawn(double totalBal){ super.accountBal = super.accountBal - totalBal - 30.0; System.out.println("You have been charged $30 for the overdraft fee"); } public void accountInfo(){ super.getAccountInfo(); System.out.println("Here is your new balance: $"); } }
public class TestingClass extends Main{ public static void main (String[] args) { Main bankAccount = new Main(); bankAccount.setFirstName("Fred"); bankAccount.setLastName("Shattell"); bankAccount.setAccountNumber(1234567890); bankAccount.deposit(2786.85); bankAccount.withdraw(750.12); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue