I was just going thru a web site,
I encountered a statement saying that
"( pure )virtual functions can be private or public."
now what's the using of keeping a ( pure ) virtual function...
Type: Posts; User: newt
I was just going thru a web site,
I encountered a statement saying that
"( pure )virtual functions can be private or public."
now what's the using of keeping a ( pure ) virtual function...
hmmm......
so when ever I create a variable and assign it to a constant the
constant is modified ( using const_Cast )
but a literal is hard coded and is not erased.
so the compiler must be...
let me get this straight,
When I create a constant in main, I am directly initializing it to a constant but in a class the initialization is done per object which means there are multiple copies of...
hi,
I just don't understand.
Plz check the code below.
*************************
int main()
{
const int i = 10;
int *ptr = NULL;