Can a class extend itself?



Can a class extend itself?..

Answer / Gyan Prakash

No, a Python class cannot directly extend or inherit from itself in the same inheritance chain. However, it can achieve a similar effect by using metaclasses.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Can we learn python in a week?

1 Answers  


What does a continue statement do in python?

1 Answers  


Name the file-related modules in python?

1 Answers  


What is key lambda in python?

1 Answers  


What are the differences between the threading and multiprocessing in python?

1 Answers  


How can you handle multiple exception in python?

1 Answers  


Explain me what are the principal differences between the lambda and def?

1 Answers  


What data hiding techniques?

1 Answers  


Explain about python operators?

1 Answers  


What is numpy array?

1 Answers  


Multiply all elements of a list without writing a loop?

1 Answers  


What are different ways to create an empty numpy array in python?

1 Answers  


Categories