R
roopa
I have declared a class with name List;
and in main() function, i have declared the List object as follows
class List
{
public:
List()
{
cout<<"In List Constuctor";
}
};
int main(int argc, char* argv[])
{
List x1;
List x2();
}
Could anybody let me know, What is the difference between "List x1;"
and "List x2();" ?
Thanks in advance.
and in main() function, i have declared the List object as follows
class List
{
public:
List()
{
cout<<"In List Constuctor";
}
};
int main(int argc, char* argv[])
{
List x1;
List x2();
}
Could anybody let me know, What is the difference between "List x1;"
and "List x2();" ?
Thanks in advance.