Image

Imagecervix wrote in Imagejava_dev

Hello.

Hi, i just joined this community because i started learning Java im trying create a simple program and needed some help.

im trying to create a bank account program that would store account information. the first step is to create a class for the account info
here's what i have so far.

public class bank {
public static void main(String[] args) {
int Amount = 3000
String AccountName = "Joe Guy"
}
}

I dont know if that's correct or not

the second step it says Modify Account Types: "Modify the class so you can subclass the Account for the specifics of a CheckingAccount class and Allow the checking accounts to provide overdraft protection"

the last step is to create a Teller program that access the account by using the classes, I know the System.out.println() one, but how would i do an input

can anyone point me to the right direction, thanks