Answered by: sumitv
Member Since Sep-2008 | Answered On : Sep 4th, 2008
Structure does support inheritance.
try out the following code.
using namespace std;
struct Derived:public Base
cout<<endl<<"A = "<<A<<endl;
D.A = 111;
Try out private and protected inheritance as well. It works. :)