Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Thomas Bähr
  Where is Thomas Bähr?
 Leipzig
 Germany
 Thomas Bähr
 To: Andy Kramek
  Where is Andy Kramek?
 Westminster Circle, Akron
 Ohio - United States
 Andy Kramek
 Tags
Subject: RE: PUBl Vars Pro&Contra
Thread ID: 141897 Message ID: 142042 # Views: 60 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, August 14, 2007 11:44:08 AM         
   


> > I dont see the point:
>
> If you cannot see any difference between data that is scoped to the VFP application object and data that is scoped to a single object contained within that environment then there is no point in continuing this discussion.
>
> The primary objection to Public Variables in an OOP design is that they break encapsulation.
>

data that is scoped to a single object

If you make this data hidden/private it would make a difference because than only the Obj and its Subclasses could access those data and the Data would be encapsulated ...
But if you take an Object .. add a Property and use/chance that Prop anythere you like it in your application ... where is your encapsulation you are talking about !?



> Period.
>
> End of subject.
>
> Remember that just because you CAN do something is not an argument for actually doing it.
>
> Regards
> Andy Kramek
> Microsoft MVP (Visual FoxPro)
> Tightline Computers Inc, Akron Ohio, USA

COMPLETE THREAD