如何访问基类的一个函数
z_kai 2005-08-20 04:41:39 #include "iostream.h"
#include "conio.h"
class A
{
public:
int aa(int x,int y){return (x * y); }
};
class B :public A
{
public:
int aa(double x,double y){return (x+y);}
};
void main()
{
cout<<"==================\n";
B bb;
bb.aa( 2,4);
//bb 如何访问A类的aa函数呢
cout<<"==================\n";
}