Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

2.4. Encapsulation

Encapsulation is the first conceptual step in object-oriented programming. It involves

  • Packaging data with the functions that can operate on that data in well-named classes

  • Providing clearly named and well-documented public functions that enable users of the class to do whatever needs to be done with objects of this class

  • Hiding implementation details


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial