1.

Define Instance Variable. Give an example of the same.

Answer»

Instance variables are variables that are created for each instance of a class. 

These variables represent property/state of object. 

e.g. 

class text 

int data 1; // These are instance 

int data 2; // variables 

}



Discussion

No Comment Found

Related InterviewSolutions