I have a four questions.Those who know the answers please reply.I would be glad to get the
right answer.Thanks in advance.Hope you find the questins interesting.....
(1)Is it possible to get the value of a private data member using the address of objects(pointers.)
If so, pl explain how it can be done?
(2)Just like the base class pointer can be assigned a derived class object ,is it possible
to assign a base class object to a derived class pointer?
can dynamic_cast be used to accomplish?
(3)In the declaration of virtual functions ,gernerally the declaration is of the form:
virtual datatype vtual_fn_name(arguments) where datatype is void or int or any other type
Is it syntactically legal on all platforms to declare the virtual function th following way.
datatype virtual vtual_fn_name(arguments) where datatype is void or int or any other type
That is can the virtual keyword preceed the data type?(usually it is the other way!)
(4)Does a data type like unsigned double exists?(I tried to check it
but Sizeof double and unsigned double give 8 and 4 bytes on msvc platform.)
Why this anomaly?