I have just came across a class for the first time ever that does not have variables in any of it's declarations but has them in the implementation. Why is this class behaviour allowed? What are the benefits of not putting variable names?
class Testing
{
public:
Testing(int, int, int); //<--- Why is there no variables after int?
};
Testing::Testing(int X, int Y, int Z) //<--- Variables here.
{
}
Is it the intellisense? I don't use intellisense so I want to know if it affects it and what makes a programmer do this? Benefits? Why does this even compile :S It works but I have no clue why.