Is it possible to declare class variable outside of “if-else” and initialize it inside the “if-else”?
something like this:
myClass mc;
if (bOOlVar){
mc(10);
}
else{
mc(10,20);
}
assuming I have 2 cons’ for myClass(one that receives int and one that receives 2 ints)
thanks a lot
1 Answer