educative.io

Educative

Do we need to set properties for the student class

Do we need to set properties for the student class?

Couldn’t we just use setName directly? do we need to do it?


Type your question above this line.

Course: https://www.educative.io/collection/10370001/6201068373409792
Lesson: https://www.educative.io/collection/page/10370001/6201068373409792/5429457751900160

Hi @Zengy

Yes, we can use setName directly and we don’t need to declare the properties first.