How many constructors can a class have?



How many constructors can a class have?..

Answer / Neerak Kumar Meena

A Python class can have multiple `constructors` (or special methods named `__init__`) as long as they each have different number or types of parameters.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

What is __ new __ in python?

1 Answers  


Is r easier than python?

1 Answers  


How does python compare string and int?

1 Answers  


What is flask & its benefits?

1 Answers  


Is python an oop?

1 Answers  


What is lambda used for in python?

1 Answers  


What is use of set in python?

1 Answers  


How do you sort a dataframe in python?

1 Answers  


What are pytest fixtures?

1 Answers  


Is python a keyword in python?

1 Answers  


How do you break a while loop?

1 Answers  


What is dynamic typing in python?

1 Answers  


Categories