假設(shè)我有三個(gè)接口A1, B1, C1,他們都有各自的方法。
然后是三個(gè)實(shí)現(xiàn)類(lèi)A2, B2, C2。
接下來(lái),通過(guò)使用Mix類(lèi)將三個(gè)接口包裝起來(lái)。
這里B2, C2接口使用了代理,而A2則通過(guò)繼承獲取。
問(wèn)題來(lái)了,為何不能使用Mix的對(duì)象調(diào)用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.