Friday, September 16, 2011

Definitions Galore

In object oriented programming, just like in any other type of programming, there are several important definitions that a person must learn. This post will be updated frequently and definitions that I feel are necessary for a programmer willl be added here. I will try to make my own definitions based on my understanding and in some cases I will try to rely on definitions found on the web.

1) Instance variables :

Instance variables are variables that an object knows about itself. It is a variable defined in a class for which every object has a copy of. In java, instance variables will be set into their default values if they are not initialized when the object is created. For example, if int x is an instance variable, it will be set to 0 if x is not initialize during the objects creation.

No comments:

Post a Comment