How can you identify a constructor from among any other methods in a class?

1 answer

Answer

1183894

2026-04-20 08:40

+ Follow

Constructors have the same identifier as that of the class, so if the name of your class is Book then your constructor must also be named Book. Constructors have no return type, not even void.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.