Home »
Public Forums »
archive »
Inherit methods without inheriting the entire class
Inherit methods without inheriting the entire class [message #84061] |
Thu, 25 April 2013 13:40 |
Matthew Argall
Messages: 286 Registered: October 2011
|
Senior Member |
|
|
I have three objects that are end up sharing 4-5 methods, but have different class definitions and purposes. The shared methods do not work on their own and it is unnecessary for them to have definition structure, but I want them to stay consistent between the three classes without having to copy+paste every time.
What is the best way to go about this? Can I put them in a separate file and give them an empty definition structure?
No init method
pro class__define
class = {class_name}
end
|
|
|
Current Time: Wed Oct 08 13:32:21 PDT 2025
Total time taken to generate the page: 0.00483 seconds