Hi, Cameron Clark!
On 23 Apr 97 00:05:01 you wrote to Balog Pal
CC> Structs don't have auto executed constructors/destructors that are
CC> called all the way down/and up the inheritence chain, do they?
Yes they do. You often don't see that as a usual struct's ctor is empty. So
it behaves as an empty inline function. But as soon as you declare a virtual
function to a struct, the ctor vill be showing. You can see the copy ctor in
work if you assign struct instances to each other. The copy ctor is generated
automatically by the compiler if you did not supply one.
CC> Do struct have inheritence and polymophic capabilities?
CC> Late binding? etc. etc.
I see you don't believe me. :) Try it. It's just like a synonim to `class'
with different default restrictions. All the stuff you can use within class
you can place into a struct, those you write above and all the others.
Paul
... del wages.* del salery.* del money.*
--- OS/2 Warp
---------------
* Origin: The FlintStones' Cave in BedRock (2:371/20)
|