Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Choose two.)

Select an option, then click Submit answer.
Reference / correct answer:
Most accepted answer: B. class Class_4(C,B): pass
Community votes: B=4, C=4
Correct answers: B. class Class_4(C,B): pass C. class Class_1(D): pass upvoted 10 times
A. class Class_3(A,C): pass This class declaration is proper based on the assumed inheritance set. It correctly inherits from classes A and C. B. class Class_4(C,B): pass This class declaration is also proper based on the assumed inheritance set. It correctly inherits from classes C and B. C. class Class_1(D): pass This class declaration is not proper based on the assumed inheritance set. It tries to inherit from class D, but D doesn't exist in the assumed inheritance set. D. class Class_2(A,B): pass This class declaration is not proper based on the assumed inheritance set. It tries to inherit from classes A and B, which is fine, but it doesn't cover all the necessary classes in the inheritance set (specifically, class C and its descendants). So, the proper class declarations are: A. class Class_3(A,C): pass B. class Class_4(C,B): pass upvoted 1 times Damon54 2 years, 5 months ago Sure ?!? upvoted 1 times ...
Sure ?!? upvoted 1 times
A. class Class_3(A,C): pass, it does not work because if the variable or method is not found in A it will not even be found in C as C inherits from A D. class Class_2(A,B): pass, the same thing doesn't work because if the variable or method is not found in A it won't even be found in B as B inherits from A upvoted 1 times
Selected Answer: BC class A: pass class B(A): pass class C(A): pass class D(B,C): pass #class Class_3(A,C): pass #TypeError: Cannot create a consistent method resolution order (MRO) for bases A, C class Class_4(C,B): pass class Class_1(D): pass #class Class_2(A,B): pass #TypeError: Cannot create a consistent method resolution order (MRO) for bases A, B Ans is B,C upvoted 2 times