Object terminology in the real world
Consider the following four objects. They are textboxes, or, to put it more geekily, they are instances of the class Textbox.
Even though they are all instances of the class Textbox, you can see that they are all different. They have different colors and say different things, or, to put it more geekily, their properties have different values.
The Textbox named txt1 has the following property values:
- The value of the Text property is: Goodbye
- The value of the ForeColor property is: red
- The value of the BackColor property is: white
The Textbox named txt2 has the following property values:
- The value of the Text property is: Hello
- The value of the ForeColor property is: black
- The value of the BackColor property is: blue
The Textbox named txt3 has the following property values:
- The value of the Text property is: Goodbye
- The value of the ForeColor property is: black
- The value of the BackColor property is: white
The Textbox named txt4 has the following property values:
- The value of the Text property is: Hello
- The value of the ForeColor property is: red
- The value of the BackgColor property is: white
|
|
Since they are all instances of the same class, each Textbox has the same properties. However, they are not identical because those properties have different values.