Questions tagged [data-hiding]
60 questions
0
votes
0 answers
Hiding ADO connection string and recordset
I'm trying to hide as much as possible within the ADO sections of code in my Excel-vba routines by making scopes as strict as possible.
Module 1:
Sub control()
Const strConn As String = _
"PROVIDER=SQLOLEDB.1;" & _
…

whytheq
- 34,466
- 65
- 172
- 267
0
votes
1 answer
A JavaScript concatenator to help data hiding under modularization?
I previously run into the problems of data hiding under modularization in JavaScript. Please see the links below:
Module pattern- How to split the code for one module into different js files?
JavaScript - extract out function while keeping it…

Boyang
- 2,520
- 5
- 31
- 49
0
votes
2 answers
Instance & Method Hiding: The Point Is?
Can someone please explain the reason and benefit for instance and method hiding, in particular what advantage would I gain duplicating superclass members? Doesn't that fly in the face of inheritance whose purpose is to further define a class and…

Mushy
- 2,535
- 10
- 33
- 54
0
votes
1 answer
"invokeImplicitAccessor" with cfc is good to use?
In ColdFusion 10 by setting in application.cfc We can now access any property belonging to a cfc directly.
I am not sure why a developer will use this kind of functionality.
My question, is this not…

Deepak Kumar Padhy
- 4,128
- 6
- 43
- 79
0
votes
4 answers
I need to call a c++ function within a function using the same object?
Example:
class Person
{
private:
int age;
public:
int getAge()
{
return age;
}
};
class Employee: public Person
{
private:
int empNum;
};
Now say I want to overload the + operator to add the ages of two employee…

Jerold Davis
- 21
- 1
- 2
0
votes
0 answers
Handle to test object in JUnit4
In my specific test case, I need to over-ride the dependencies of my test case to inject more dependencies like servlet request and response.
It is not possible to mock these as my API requires an actual servlet container to compile and run…

Neel
- 2,100
- 5
- 24
- 47
0
votes
1 answer
Android - Hiding RelativeLayout when press a tab
I have a tabHost with 2 Tabs, Details and Attachments. What I want to do is, when I press the Attachments Tab, I want to hide Information that is in a RelativeLayout. I know I have to setVisibility(View.VISIBLE) but how can I associate this…

Akash
- 367
- 9
- 21
-1
votes
1 answer
Program without and with data hiding in java
I have studied data hiding in java theoretically but don't know what is happening inside. Every tutorial, states that unauthorized persons cant access the data of others.
Can anyone please give an example of what will happen without and with data…

SMValiAli
- 85
- 1
- 6
-1
votes
1 answer
Python: hiding input characters with Stars
I am requesting user input. I am asking for username then password.
EG
username = input('Please enter a Username:\n')
password = input('Please enter a Password:\n')
When run this will of course appear like this:
Please enter a Username:
Iain
Please…

IGDB
- 1
- 1
-1
votes
1 answer
Watermarking in PDF documents
I am starting now my first year of master and my project is about digital watermarking in PDF documents.
I start reading some papers, but I noticed that there are no really sufficient works done for hiding information in PDF documents.
I am reading…

Christina
- 903
- 16
- 39
-1
votes
1 answer
Use different Table Header on first page
I'm using iText and create a dynamic table which has a a reoccurring header in the method createTabularHeader:
PdfPTable table = new PdfPTable(6);
// fill it with some basic information
table.setHeaderRows(1);
Yet on the first page I would like to…

Qohelet
- 1,459
- 4
- 24
- 41
-2
votes
0 answers
How does class and objects enable data hiding when constructors, setters and getters are all public?
While the internet offers examples as given below when learning CPP:
#include
class Employee {
private:
int salary;
public:
Employee() : salary(0){ }
Employee(int s) : salary(s){ }
Employee(const Employee& ref) :…

Pisers
- 103
- 5
-2
votes
1 answer
How is the usage of constructors an implementation of data-hiding?
I know what constructors are used for, and kinda know what data hiding means.... found absolutely no link among the two (im a dimwit, sedd).... please help?

Om Nom
- 1
- 3
-2
votes
1 answer
Why is data hiding a key part of OOP and not Imperative or Functional programming?
Is it used in other programming paradigms as well? What would be a good example of when and when not to use it?

user
- 49
- 1
- 8
-6
votes
1 answer
Information Hiding VS Encapsulation
We know that encapsulation binds the data members and member functions into a bounded scope.Now anyone who has to make changes to the data(for eg. private data) has to get into the scope of the class.So when we talk about data hiding, can we say…

geeky_guy
- 21
- 3