> Usually I put my java files in jdk/bin directory, compile them, then
> transfer them to package.
You will eventually find that this approach is too unwieldy to continue
using; this will probably happen sooner rather than later. In the mean
time...
> Referring to my problem, is there a way that I can compile those files
> from the package?
I'm not sure quite what you mean about compiling files "from the
package." If you want to do the compilation as you describe above then
you can do so by first compiling the Car class, then putting it in an
appropriate (corresponding to the package) directory, then compiling the
RedCar with use of the compiler's classpath option to tell it the base
directory(-ies) in which to look for compiled classes.
If you want to do it the way most of the world does it (directly or
indirectly) then refer to Tom's response.

Signature
John Bollinger
jobollin@indiana.edu