What's the difference between constructors and other methods?

Q

What's the difference between constructors and other methods?

✍: Guest

A

Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.

2012-08-27, 2124👍, 0💬