i want some idea about method hiding

Recommended Answers

All 3 Replies

Hmm are you talking about the Encapsulation feature OOP languages provide? if so see just add the 'private' modifier to variables and methods that you want hide from other classes that may initiate your object. Note, if you use private modfier on variables that are needed in the calling class then just create appropriate mutators and accessor methods to change and view private instance data. see here for more information:http://en.wikibooks.org/wiki/C_Sharp_Programming/Encapsulation

thnx all for your valuable comment

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.