ken delsignore wrote:This makes it more difficult compared to C++, where you can read the class definition without the code. Can Java be written the same way?
Well, you can write interfaces; or cooperative classes if it makes sense. But no, there's no specific way to separate methods from their code. Methods are either
abstract (no code), or they contain code.
You can create "stubs", as outlined
here - but this is usually done as a preliminary step to implementation.
Winston