May 29th, 2007, 6:53 pm
One lowly question on c++ .... but have to ask :I encounter the following line of code in c++ :class something className : public baseClassName{....}Question: What could "something" in the above code be?In the code I see, "something" could be some typedef or something declared elsewhere using #define. I do not have access to the part of the code where "something" was declared, possibly using typedef or under a #define statement.The usual declaration for classes is:class className : public baseClassName{...}So, how is "something" accepted by the compiler when it encounters it between the keyword "class" and the "className" EDIT: In the same header file, I also see a global function declaration, in the following format:void something functionName (arg1, arg2 .. , argN);So, the same "something" has a meaning for functions too.
Last edited by
bhutes on May 28th, 2007, 10:00 pm, edited 1 time in total.