Tuesday, June 2, 2015

Scope Of Variables

// Instance variables alive as long as the object alive
// Iorder to initialize the instance variable we can use constructors
// Instance variables have the default values which is NULL
// But local variables do not have default values so we have to declare it.
// local variable alive aslong as the method alive
// parameter variable are declared in the method header which is also the local variables

No comments:

Post a Comment