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 |
What is __ new __ in python?
Is r easier than python?
How does python compare string and int?
What is flask & its benefits?
Is python an oop?
What is lambda used for in python?
What is use of set in python?
How do you sort a dataframe in python?
What are pytest fixtures?
Is python a keyword in python?
How do you break a while loop?
What is dynamic typing in python?