The question is: create a class student with data members rollno,
name, mark1, mark2. Now define a class result derived from ‘student’
with a data member result. now we are accepting the details in class
‘student‘ and then we are going to find the result/ total in class
‘result‘. For that the values of object of ‘student’ has to be copied
to ‘result’..
Solution is here:
http://goforaplusplus.wordpress.com/2011/07/23/inheriting-values-from-an-object-of-a-base-class/
Got a better way to do this? mail it!! as reply!!