5 Jan
2006
5 Jan
'06
2:57 p.m.
Is it possible to have a class in one file that extends another class from another file? Basically, I would like to put the base class for my fractal generators (I decided to go this route, even though the generated data stream is different from the original C generated data) into one file, while the actual fractal classes would extend the base class in another file.
Yes it is possible. The parent class can be defined in its own file. After the file is compiled and run, the class should be available for subsequent programs to inherit/instantiate/use, as if the class were defined in the same file. Let us know if you run into issues doing this. Best, Ge!