www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - encapsulation

reply arun s <1986.arun gmail.com> writes:
how is the concept of data hiding and encapsulation implemented in D ?????
Mar 13 2007
parent Gregor Richards <Richards codu.org> writes:
arun s wrote:
 how is the concept of data hiding and encapsulation implemented in D ?????
In real language: "private" applies to inter-module use of data. That is, if something is "private" within module foo, nothing /outside/ of module foo will be able to access it. However, anything /inside/ of module foo can access it. In your language: when ur in a module the stuf thats private isnt private in that module its only private in other stuff liek wow its gr8 if u know how to use it right ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? ????? lol - Gregor Richards
Mar 13 2007