Hi
What is the use of declaring a class object as static?
Eg: Class Base{
public:
...........
Base(1){}
..........
.........
};
main(){
static Base obj(1)j;
}
I get compile error when I try to call default constuctor : Base()
Thanks
What is the use of declaring a class object as static?
Eg: Class Base{
public:
...........
Base(1){}
..........
.........
};
main(){
static Base obj(1)j;
}
I get compile error when I try to call default constuctor : Base()
Thanks
Comment