Why is a constructor useful?

1 answer

Answer

1264227

2026-07-07 10:05

+ Follow

Objects are constructed. You can't make a new object without invoking a constructor. In fact, you can't make a new object without invoking not just the constructor of the object's actual class type, but also the constructor of each of its superclasses including the Object class itself! Constructors are the code that runs whenever you use the keyWord new.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.