How can you implement encapsulation in asp.net?

Answer Posted / rahul kumar

I Java.....
Encapsulation is a mechanism which binds together or
associate together codes or instance variable and methods in
such a way that the instance variable must be encapsulated
and method made publicly open so that the end user can
access the object through defined methods only to ensure
that the define methods is saved for long term or period.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to find last error which occurred?

744


How can we make sure that Web API returns JSON data only?

750


What are the new features added from ASP to ASP.NET?

770


Explain the use of fragment caching.

834


How many types of cookies are there in asp.net?

720


Diff between web user control and web custom control?

720


What are the differences between clr & cts?

723


What is the use of view state?

714


To display data in a Repeater control which template you provide?

772


What threading model used in asp and asp.net?

758


Explain server-side scripting?

761


Explain the use of dataadapter.

805


What is a postback ispostback and autopostback in asp net?

659


What is the difference between application state and session state in asp net?

745


Explain file-based dependency and key-based dependency.

759