+ 1
If i have so much attributes what attributes i will add in constructor?
For example, I have a assignment about design and implementation. In assignment, I have a class name Student with a lot of attributes: id, firstName, givenName, lastName, email, address, phone, dob, gender Somebody can help me. Many thankssss
1 Réponse
+ 7
You can add as many properties as u want in the constructor. You can add all the properties of students in the constructor.