answersLogoWhite

0

As my AP Computer Science teacher eloquently said:

"You can't let strangers touch your private parts"

Therefore, if data was not hidden, a client class can modify all the variables(given that it is not a final constant) by simply calling:

className.variableName = newWrongData;

By using special methods to access the variables, the class can change its internal implementation, without breaking compatibility with other classes that are already using it.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is Data Hiding in VBNET?

Data hiding is used method used in Object-Oriented programing to hide information within computer code


What are some things you should do if you hear that there is a cyclone warning in your area?

you should go in your basement and hide under a heavy object.


Why encapsulation does not implement information hiding in object orientation?

Encapsulation also implements data hiding in an object oriented programming design. By encapsulating various methods & data objects into a single class they can also be hidden from all the other classes. You can declare the variables and methods as private and that way you can hide the data from the other classes in the application.


Use to compare data side by side which of the following object should you select?

TableChartOutlineGrid


What is adodc?

Acitex data object database


Is a technique that can be used to conceal data that might not be relevant to a particular report or sensitive data that others should not see?

You can hide a column or row, so they do not appear or you can format the cell contents to be white instead of black (format cell contents to the same color as the cell background).


Best way to generate test data for a 3D object recognition engine Data should have the form 'xyz rgb objtype' where xyz is a point on the object's surface rgb is the point's color?

16,421 - 14,831


Advantages and disadvantages of manual data processing?

disadvantages in data manual processing


RdoQuery in The rdoConnection object is not connected to a data source?

The rdoConnection object is not connected to a data source?


When was Object Data Management Group created?

Object Data Management Group was created in 1991.


The process of disguising a message or data in what appears to be meaningless data to hide and protect the sensitive data from unauthorized access?

Encryption


What is duplicate data entry in an index?

[object Object]