According to Antoine Borg:
Not exactly.....
Properties ARE variables but when included within an object they are called properties.
The keyword private is used to support the concept of encapsulation.
The methods (procedures/functions) are also part of the object. They are used to access properties because of encapsulation as mentioned earlier.
I think here is some misunderstanding:
* In OOP terminology, data fields of objects are often called "properties", and procedures/functions of the object are called "methods", as Antoine pointed out.
* Delphi provides something more specific which they call "properties": something which pretends to be a data field but is in fact a pair of methods. This is what The Chief described.
Hope this clears things up,
Peter