Anda di halaman 1dari 1

1.

From child class we cannot use super() method to access parent class instance
variables.We should access instace variables by using 'self' only.

2. From child class constructor by using super() we can call


1. parent class constructor
2. parent class instance method
3. parent class 'class method'
4. parent class static method
3. From child class instance method by using super() we can call
1. parent class constructor
2. parent class instance method
3. parent class 'class method'
4. parent class static method
4.From child class 'class method' by using super() we can call
1. parent class 'class method'
2. parent class static method
But we cannot call parent class instace method and constructor directly.
5. From child class static method we cannot use super() directly.
But we can call only static methods indirectly as follows

Anda mungkin juga menyukai