❔ Classes
Hello
Is the command inside for loop works??
I think no
How can I add values to the classes in array?
14 Replies
employees[i] = new Employee(i, "Name" );
This didn't works
It's give me error
you want me to guess the error?
1sec
employees. length
That wont compile. I presume you copied wrong
best thing to do is go error by error and make sure you understand why
Oh ok
so what is wrong about this:
how do you create an array of the type you want, let's say int
it's incorrect syntax
the syntax is
yeah we got ghosted, teaching lesson avoided
oh
you're not asking
you're telling
yeah
Public
, main
new employees
c# is case sensitiveWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.