When the compiler does not like something, it will spit out an error message or warning. You should try to learn to read those messages, because they can help pointing out what the problem is.
Thanks Guys for reply...
I am able to solve the problem..
Explanation:
1) Its "class", just gave above peice of code as example {My typo error :)}
2) Class B was having private destructor and a public expilicit contructur taking argumnet.
3) I tried below and it works fine
Class C
{
C(A& a)
:B(a)
{
}
A a;
B b;
};
Please get back to me if my explanation is not clear info.. :)