Do you always need a default constructor?



Do you always need a default constructor?..

Answer / Avadesh Yadav

In Python classes, default constructors are not required. If no constructor is defined, Python will automatically create one that initializes all instance variables to their default values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What are the difference between python and java?

1 Answers  


What is shebang python?

1 Answers  


What is the best ide for python?

1 Answers  


How to send an email in python language?

1 Answers  


What is an iterator in python?

1 Answers  


Why is python good for machine learning?

1 Answers  


Why do computer scientists count from 0?

1 Answers  


Is tuple iterable in python?

1 Answers  


Is there any equivalent to scanf() or sscanf()?

1 Answers  


What is the best way to get the first five entries of a data frame?

2 Answers  


Is python a programming?

1 Answers  


Why is python so popular?

1 Answers  


Categories