The output result of the candidate should be B's m1, A's m2, A's m3 B's m1, A's m2, C's m3 13 A's m1, A's m2, C's m3 13 B's m1, A's m2, C's m3 13 right? B inherits A and overloads A's m1 method, and other methods are the same as A; C inherits B and overloads B's m3 method (that is, overloads A's m3 method), and other methods are the same as B's The method is the same.
The output result of the candidate should be
B's m1, A's m2, A's m3
B's m1, A's m2, C's m3 13
A's m1, A's m2, C's m3 13
B's m1, A's m2, C's m3 13
right?
B inherits A and overloads A's m1 method, and other methods are the same as A; C inherits B and overloads B's m3 method (that is, overloads A's m3 method), and other methods are the same as B's The method is the same.