LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GOOP

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?

0 Kudos
Message 1 of 3
(2,784 Views)

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

www.endevo.se

0 Kudos
Message 2 of 3
(2,769 Views)

Thank you Jan for your quick answer and we really appreciate your help!

 

Regards,

Jimmie A.

Applications Engineer, National Instruments

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 3 of 3
(2,740 Views)