S
subramanian100in
In Stanley Lippman's 'C++ Primer Fourth Edition', in page 564, the
following is mentioned:
"A virtual function in the derived class can return a reference or
pointer to a class that is PUBLICLY derived from the type returned by
the base class function."
I am unable to understand this sentence. Kindly explain it with
program sample.
Thanks
V.Subramanian
following is mentioned:
"A virtual function in the derived class can return a reference or
pointer to a class that is PUBLICLY derived from the type returned by
the base class function."
I am unable to understand this sentence. Kindly explain it with
program sample.
Thanks
V.Subramanian