I have happened to read a function definition like this:
virtual void printMarksheet() const = 0;
I thought initially that the syntax may be incorrect. So I wrote a dummy code to check. I wrote the following code and compiled. It compiled successfully. But I would like to know the meaning of the line. Is it function definition? or function declaration? What is the significance of const=0.
class Marksheet
{
public:
virtual void printMarksheet() const = 0;
};
int main()
{
return 0;
}