Hi
Can any one tell how many ways to encapsulate(Hide) ...................?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Jan 2, 2012, 12:05 AM EST
please have look on below article.
Click Here
Thanks,
Pravin.
VulpesRank #55 · 29.2K reputationPosted Jan 2, 2012, 12:11 AM EST
http://www.c-sharpcorner.com/uploadfile/Ashush/the-first-pillar-of-object-oriented-programming-encapsulation/
also explains 'encapsulation' in the OO sense very well.
You can also hide a base class member by declaring a member with the same name in the derived class. The compiler will warn you about this unless you qualify the derived class member with 'new'. You can still access the base class member using the 'base' keyword.
Notice also that a local variable or parameter will always hide a field of the same name. You can still access the latter by qualifying it with 'this' or, if its a static field, by qualifying it with the classname.
Nipun TomarRank #90 · 23K reputationPosted Jan 2, 2012, 7:23 PM EST
Plz read the Article in below link:
http://www.csharp-station.com/Tutorials/lesson19.aspx
Thanks
Datta KharadRank #2,135 · 668 reputationPosted Jan 3, 2012, 3:19 AM EST
These links will help you...
http://www.csharp-station.com/Tutorials/lesson19.aspx
http://dotnetslackers.com/articles/csharp/PolymorphismEncapsulation.aspx