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
Ranked #72.7K
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 … |
|
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 … |