Maha

Maha

  • NA
  • 0
  • 325.9k

Constructor

May 13 2014 10:21 AM
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)