A property that returns the value of a private field is another example of encapsulation. A calling class doesn't need to know anything about the private field and it cannot access it: http://ift.tt/1pfk4wz
No comments:
Post a Comment