09-06-2005 08:16 AM
Class Fan{
Public:
Fan()
~Fan()
usigned char getSpeed();
void setSpeed(unsigned char speed);
private:
unsigned char speed;
};
Hello!
Is there anyone that is familiar with how the GOOP works? I know how to build the class above, but I don´t know how to implement inheritance, polymorfism if I have some subclasses? Would somebody explain this to me?
09-06-2005 09:46 AM
If you are using the original GOOP Wizard, version 1, (free download from NI) it does not support inheritance. If you are using Endevos GOOP Wizard 3, just select "sub class from existing class" when you create a new class. Declare methods on the base class as virtual.
Thanks,
Jan
Endevo
09-07-2005 01:18 AM
Thank you Jan for your quick answer and we really appreciate your help!
Regards,
Jimmie A.
Applications Engineer, National Instruments