Methods define what an instance of a class can “do”. Fields define the “state” or “attributes” of an instance of a class. First, Bob recalls the earlier discussion of fields and points out the problems in exposing fields “publicly”. This leads to a discussion of encapsulation and using hidden (private) fields to store the values and implement publicly visible properties as the “gate keepers” to prevent the code that is working with an instance of the class (the client) from setting the fields to an impractical or improper value.
This is a short preview that demonstrates the quality of the screencasts we offer at LearnVisualStudio.NET.
Scroll down and click the play button in the lower-left hand corner of the video player to start watching.
The full length video is 21 Minutes, 35 Seconds and is available to LearnVisualStudio.NET members. Join today!
Bob, we love the videos – good presentation & pace. They’re a great way to help beginners get up to speed quickly.Mark Jewett , Senior Manager
SQL Server, Microsoft Corporation
1 Year Membership
(it’s about $6 a month)
- Watch hundreds of screencasts
- New training each week
- Stream instantly via Vimeo … even works on iOS (and *some* Android devices)!
- Download source code
$200pay just once
keep learning new .NET stuff
- 1 Year benefits, plus …
- Download video files to keep. Powered by Amazon S3 (blazing fast).
- Q & A Get answers to your questions about the videos