Transcription: Encapsulation means controlling access to the data and functions defined inside a class. In object-oriented languages, an attempt to access hidden data members or misuse member functions is treated as an error. This is how these languages support encapsulation. Programmers cannot take shortcuts or make quick fixes in a client program by using the class in ways that were not intended. This feature eliminates a potential source of bugs and helps to maintain the reusability of code.