Re: [algogeeks] C++ urgent friend func doubt

2011-07-31 Thread pandharinath gorde
actually problem is in class A it is not getting declaration of class B becoz there u tried to tell one member of class when declaring friend.If with forwrard declaration when specifying data member of class require its defination. class A; class B//:public A { public: int func(A ob); };

[algogeeks] C++ urgent friend func doubt

2011-07-31 Thread Anika Jain
class B; class A { int a; public: int f2(){} friend int B::func(A ob); }; class B:public A { public: int func(A ob) { } }; why compilation error is coming over here for friend statement n forward protype declaration of class B ?? -- You received this message be