An Example of Multiple Inheritance C multiple-inherit A and B, but since A is in the left of B, so C inherit A and invoke A.A() according to the left-to-right sequence. To implement C.B(), class A does not have B() method, so C inherit B for the second priority. So C.B() actually invokes B() in class B - Study24x7
Social learning Network
23 May 2019 05:02 PM study24x7 study24x7

An Example of Multiple Inheritance C multiple-inherit A and B, but since A is in the left of B, so C inherit A and invoke A.A() according to the left-to-right sequence. To implement C.B(), class A does not have B() method, so C inherit B for the second priority. So C.B() actually...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles