View Single Post
  #2 (permalink)  
Old 08-01-2007, 03:10 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up Re: Explain why encapsulation is required?

Hi buddy,

The idea of encapsulation comes from
(i) the need to cleanly distinguish between the specification and the implementation of an operation and
(ii) the need for modularity. Modularity is necessary to structure complex applications designed and implemented by a team of programmers.

It is also necessary as a tool for protection and authorization.

There are two views of encapsulation: the programming language view (which is the original view since the concept originated there) and the database adaptation of that view.

From the above details, you may get why it is required? For Protection, authorization, information hiding etc...

Hope usefull.
__________________
Prasanna Vignesh
MCPD | Web Developer
Reply With Quote