Join Now
Home Aptitude Reasoning DI VA GK CA CA Hindi Quiz Placements
It occurs when a subclass provides a different implementation for a method that is already defined in the parent class
It occurs when a subclass adds a new method to the parent class
It occurs when a subclass inherits all the methods from the parent class
None of the above
str
repr
eq
cmp
self
new
create
@classmethod
@staticmethod
@property
All of the above
A class can inherit from multiple classes at the same time
A class can inherit from only one class at a time
Multiple inheritance is not supported in Python
del
delete
remove
destroy
It is used to call a method in the parent class
It is used to call a method in the current class
It is used to call a method in a child class
this
me
current
They are defined inside a method
They are shared by all instances of a class
They are accessed using the instance name
To free up resources when an object is destroyed
To create a new object
To define variables in a class
To call methods from other classes