Okay I'm a beginner programmer and I just can't seem to get the most basic class and constructor to work.
Heres what I have
import java.io.*;
public class bankAccount
{
//instance variables
String name;
int number;
double balance;
}
public bankAccount(String name, int number, double balance)
{
name = "John Smith;
number = 123456;
balance = 0.0;
}
I get the error "class, interface, or enum expected" whenver I compile. I'm missing something completely basic here I know it...