What Will Be The Output Of The Following Python Codep Pre #1112

What will be the output of the following Python code?</p> <pre><code class="language-python"> class A: def __init__(self): self.__i = 1 self.j = 5 def display(self): print(self.__i, self.j) class B(A): def __init__(self): super().__init__() self.__i = 2 self.j = 7 c = B() c.display() </code></pre>

Online Quiz This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python OOPs - Python Inheritance - Quiz No.2.


Similar question(s) are as followings:



Online Quizzes of gs109 Python

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background