1.

How many types of constructors can a class have?

Answer»

Like functions, a class can have any number of constructors. But unlike functions, all the constructors will have the same name, the name of the class, but different parameter signatures. In other words, you can create as many valid overloads of a constructor, as you want.




Discussion

No Comment Found