comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Inherit methods without inheriting the entire class
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Inherit methods without inheriting the entire class [message #84061] Thu, 25 April 2013 13:40
Matthew Argall is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Advancing !p.multi after drawing a map
Next Topic: Re: Inquiring of a interesting question

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:45 PDT 2025

Total time taken to generate the page: 0.00494 seconds