问题
单项选择题
多态性指的是( )。
A.public float Method(float a,float b,float c) { }
B.public float Method(float c,float d){ }
C.public int Method(int a,int b){ }
D.private float Method(int a,int b,int c){ }
答案
参考答案:B
解析:选项A)、选项B)和选项C)都不正确,因为友元关系是单项的,并且没有交换性、传递性。