RE: PUBL VARS PRO&CONTRA
From: Thomas Bähr
To: Andy Kramek
Westminster Circle, Akron
Ohio - United States
PUBl Vars Pro&Contra
RE: PUBl Vars Pro&Contra
Visual FoxPro 9
General VFP Topics
Tuesday, August 14, 2007 11:44:08 AM
This message was rated by:
> > 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 !?
> End of subject.
> Remember that just because you CAN do something is not an argument for actually doing it.
> Andy Kramek
> Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA