P
PengYu.UT
Suppose I have class A, which defines a lot of member functions a1 ...
an. The class B publically inherent from A, because it want to use A's
member function.
But B only want make member function a1() private. Is there any easy
way to do it?
Thanks,
Peng
class A{
public:
A() {}
int a(int) {}
int a1(int) {}
int a2(int) {}
int a3(int) {}
....
....
int an(int) {}
};
class B : public A{
public:
B() {}
};
an. The class B publically inherent from A, because it want to use A's
member function.
But B only want make member function a1() private. Is there any easy
way to do it?
Thanks,
Peng
class A{
public:
A() {}
int a(int) {}
int a1(int) {}
int a2(int) {}
int a3(int) {}
....
....
int an(int) {}
};
class B : public A{
public:
B() {}
};