PROVIDE PYTHON SOURCECODE WITH OUTPUT
Write a Python program and a C++ program to demonstrate multiple inheritance by doing the following tasks:
1.Create class A, B, C where C inherits from A and B.
2.A and B should have a display1() and display2() respectively that print “Inside A” and “Inside B” respectively. Invoke these display1() and display2() using C’s object.
Modify the code to invoke display1() from display2(). Observe what happens differently in Python and C++ when you try to do this. Explain the difference between Python and C++ languages based on this observation.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here