[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 561 KB, 1085x750, Engineering Image1.jpg [View same] [iqdb] [saucenao] [google]
4022714 No.4022714 [Reply] [Original]

How would I go about calling all the constructors for an array of objects.

Object c[50]; How do I initialize those all? How can I call the constructor.

>> No.4022715

>>4022714
Java?

>> No.4022721

get class

get constructor

enjoy reflection

>> No.4022760

>>4022714
ask them nicely