84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
假设我有三个接口A1, B1, C1,他们都有各自的方法。
然后是三个实现类A2, B2, C2。
接下来,通过使用Mix类将三个接口包装起来。这里B2, C2接口使用了代理,而A2则通过继承获取。
问题来了,为何不能使用Mix的对象调用A1的方法?
Ugh. . .
That, m1.a(); This sentence seems not to be written in the function body, but directly under the curly braces of the class body, but it is not a statement used to declare members of the Test class.
m1.a();
Ugh. . .
That,
m1.a();
This sentence seems not to be written in the function body, but directly under the curly braces of the class body, but it is not a statement used to declare members of the Test class.