Question & Answer: How many constructors must a class have? Select one: a. 1 b. 0 or more c. 0 How many in…..

PYTHON PYTHON PYTHON

How many constructors must a class have? Select one: a. 1 b. 0 or more c. 0 How many initializers (default or provided) must a class have? Select one: a. 0 b. 0 or more c. 1

Expert Answer

 

1) A class must have 1 constructor as it creates the instance and initialize the field members. And if more than one constructor is required then its created as method and called as method as well.

2) It can have 0 or more initializers.

Still stressed from student homework?
Get quality assistance from academic writers!