Inheritance
1.
What is true about Inheritance in Python?
2.
When a child class inherits from only one parent class, it is called?
3.
Which inheritance is a blend of more than one type of inheritance?
4.
Parent class is the class being inherited from, also called?
5.
The child's __init__() function overrides the inheritance of the parent's __init__() function.
6.
__________function that will make the child class inherit all the methods and properties from its parent
7.
Suppose B is a subclass of A, to invoke the __init__ method in A from B, what is the line of code you should write?
8.
What does built-in function type do in context of classes?
9.
Which of the following statements is false?
10.
What will be output for the folllowing code?
class A:
def __init__(self, x= 1):
self.x = x
class der(A):
def __init__(self,y = 2):
super().__init__()
self.y = y
def main():
obj = der()
print(obj.x, obj.y)
main()