how to design classes in java?

Sadaiyappan

Golden Member
Nov 29, 2007
1,120
4
81
i am a C++ programmer, i know in C++ you create the interface (with abstract base class then with inherited classes), and each file is an interface (header files).. then you create the implentation of each header file (source files) THEN you create the main driver file (which is also a source file) can someone explain how you do all this in java?

my book shows packages, libraries, classes and main function all in one file, is it supposed to be like this or am i missing something?