Hi,
Can anyone tell me if it's possible to define methods of a class outside the original class definition - specifically, in a seperate include file?
Thanks,
Tom
Possible to define methods outside the class?
Moderator: General Moderators
Re: Possible to define methods outside the class?
As far as I know its not possible.
What are you trying to achieve? there might be an alternative solution...
What are you trying to achieve? there might be an alternative solution...
Re: Possible to define methods outside the class?
Is this a homework or job interview question?
Re: Possible to define methods outside the class?
Well the aim is just to tidy up a big class and move deprecated methods into a seperate file
Re: Possible to define methods outside the class?
A better solution might be to use object composition. http://www.artima.com/lejava/articles/d ... ples4.html