0

Is it necessary to initialize the object variables at the time of declaration of the object?

8/2/2016 6:58:44 PM

Sumitabha Banerjee

1 Answer

New Answer

0

Depends' generally not ' you only initialise the variable when you are going to use it. Unless you need it in some other function or loop in which case you will have to call it. In other words you cant use the variable "age" unless you have called it "- be carfeful with scope ( declare it globally vs in function)