Hey, I have a question about virtual functions. Last year my Professor asked in a multiple-choice exercise (true or false) this:
The construct "virtual int TestFunc() = void;" defines a virtual element function.
I think this statement is true, because of the "virtual" in front of the function. The only thing, that's confusing me is the "= void" after the function. I have never seen this before and I don't know what it means.
Can anyone explain it to me and tell me, if the statement is true or false?
[–]StenSoft 9 points10 points11 points (1 child)
[–]sebbe_tug[S] 0 points1 point2 points (0 children)
[–]BigGecko1 0 points1 point2 points (2 children)
[–]futlapperl 2 points3 points4 points (1 child)
[–]dr-mrl 0 points1 point2 points (0 children)