i want some idea about method hiding

Recommended Answers

What exactly do you have in mind?
Maybe you want to create a derived class from a base class, and use a new keyword on a return type.
Check here: http://www.akadia.com/services/dotnet_polymorphism.html

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.