2
Reply

Constructor

Ask a question
Maha

Maha

10 years ago
644
1
Once you instantiate an object, data field in the class of that particular object will be automatically set. For example

Numeric fields are set to 0 (zero).
Character fields are set to '\0', or null.
Boolean fields are set to false.
Object-type fields, such as string or any class object, are set to null (or empty).

So what is point of requesting to set zero again in this question. Problem is highlighted.


Attachment: 277.zip

Answers (2)