Simple Class Inheritance Synthax problem (Thread lib)

Hello !

I'm intending to use some threads, hence I'm searching for a lib that fits right. I found this one which is a strong canditade : Thread Lib

Looking into some of the lib examples I've seen a different synthax used to call Inheritance between classes, please take a look Example (line 82).

The author uses class ButtonThread: public Thread{ }; well it seems a little bit odd to me, I would have used class ButtonThread:: public Thread{}; does this actually works?

I'm used to Java and in my head C++ "::" is equal to JAVA "extends". Right? Thanks

If the syntax you're asking about seems "a little bit odd", then I suggest you read a few c++ tutorials. It is correct.

Regards,
Ray L.