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

Home » Public Forums » archive » Re: Inherit methods without inheriting the entire class
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Inherit methods without inheriting the entire class [message #84058 is a reply to message #84050] Thu, 25 April 2013 18:05 Go to previous messageGo to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
On Thursday, April 25, 2013 4:40:11 PM UTC-4, Matthew Argall wrote:
> 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?

Search this group for "abstract class". You'll need to put some dummy data in it, unfortunately.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: JD Smith Missing
Next Topic: Must Be Summer!

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

Current Time: Fri Oct 10 14:24:58 PDT 2025

Total time taken to generate the page: 0.63526 seconds