Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~154 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for madhavb

How do I access the base class protected/public methods in a derived object ? For example A and B are as defined below... [code=cplusplus] class A { int a; protected: int set(int v){ a = v; }; public: A(){}; int foo(){ return 0;}; }; class B : A { int …

Member Avatar for tazboy
0
82
Member Avatar for madhavb

i have a following code: [code=cplusplus] #include <vector> using namespace std; class A { int t; int f; public: A(){}; }; class B { vector <A> a(10); int y; public: B(){}; }; int main(int a, char *b[]) { B c; } [/code] when I try to compile Iam getting the …

Member Avatar for ArkM
0
72