One has nothing to do with the other. A property, of course, is a public member variable meant to describe a particular aspect of a class.
If you define a class and instantiate it with the name MyClass, you can assign some meaning to MyClass[i] by defining an indexer. Exactly what MyClass[i] means is up to you.
No comments:
Post a Comment