Lets say you have two packages...package a and package b...and in package a you have a private variable, then you import package a to package b...this private variable is not visible in package b...correct?
yes, it is correct because private modifier is actually made for security of the varible . You can use that variable through the methods (from same class in which private varibles are declared) but you can modify that variables value. It is the part of ENCAPSULATION. ok ..
------------------ manish paliwal(or just mann )
manish paliwal(or just mann )
posted 17 years ago
Thanks guys...just wanted to make sure
You didn't tell me he was so big. Unlike this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database