Purpose of having Properties in Interface

Light Poster
3Apr2007,16:40   #1
visualcpp's Avatar
Hai!
I couldn't understand the purpose of having Properties in interface. If any one having clear information about this, please share it.

Thanks in advance!

Regards,
visualcpp
Go4Expert Founder
3Apr2007,17:03   #2
shabbir's Avatar
Its same as the get set methods that we used to write in old days. To share the values of the variables to the outside world
Light Poster
3Apr2007,17:44   #3
visualcpp's Avatar
Yes. I understand the purpose and concept of properties. That is perfectly ok for class's. Why should we have properties in interface as it doesn't contain any memberdata to wrap around (like class's)?
Go4Expert Founder
3Apr2007,18:31   #4
shabbir's Avatar
Quote:
Originally Posted by visualcpp
Yes. I understand the purpose and concept of properties. That is perfectly ok for class's. Why should we have properties in interface as it doesn't contain any memberdata to wrap around (like class's)?
You can always have a data in a class which can be stored.

Its something like writing the get set methods/