August 2013
Beginner
540 pages
12h 51m
English
After completing this chapter, you will be able to:
Describe what properties are.
Explain how properties are supported by C++/CLI.
Implement properties.
Properties have been available in some programming languages—such as Microsoft Visual Basic—for some time, but the Microsoft .NET Framework has added support for them into Microsoft Intermediate Language (MSIL) so that they can be easily implemented in any .NET programming language. You’ll see in this chapter that properties can often lead to a more natural style of programming without sacrificing robustness or violating the principles of object-oriented programming.
It is a long-accepted principle of object-oriented programming that it’s a bad idea to give ...