information-hiding Questions

9

Solved

How can I write some information inside a photo file like jpg or gif without destroying the image? and of course without showing it on the photo since the whole idea is to send information in the f...
Pre asked 1/8, 2009 at 8:19

9

Solved

What are the differences between information hiding and encapsulation? I have read that encapsulation means bundling data and the procedures that should operate on them together. If that is so, doe...
Leyba asked 17/12, 2012 at 11:23

3

Solved

I usually think of global scope as a namespace that always can be accessed from everywhere. I would like to know whether it is theoretically possible to completely hide global scope. For example, a...
Petiolule asked 29/5, 2013 at 20:39

12

Solved

Python gives us the ability to create 'private' methods and variables within a class by prepending double underscores to the name, like this: __myPrivateMethod(). How, then, can one explain this &g...
Mauritius asked 16/9, 2008 at 8:59

22

Solved

Can you tell me what is the difference between abstraction and information hiding in software development? I am confused. Abstraction hides detail implementation and information hiding abstracts w...

4

Solved

I've read up on the Command Pattern, and I think I'm missing something. The Command object exists to abstract away the details of the Receiver object. It seems to me that we could simply stop here,...

6

Solved

Do subclasses inherit private fields? This question addresses the same problem but I don't quite understand how that satisfies the (seemingly) contradictory situations below. http://docs.oracle.c...
Narial asked 8/5, 2012 at 0:36

9

Solved

... so that browsing the disassembly won't immediately expose the password (declared as a static variable). As an example, imagine a program that has a zip file attached that it must open for asset...
Tsai asked 15/3, 2011 at 18:55

2

Solved

In my Swift code, I often use the private modifier to limit the visibility of helper classes. For example, in one file, I'll have a GridController and a GridControllerModel. The GridController (th...
Clientage asked 22/3, 2016 at 17:58

11

Solved

Backgrounder: The PIMPL Idiom (Pointer to IMPLementation) is a technique for implementation hiding in which a public class wraps a structure or class that cannot be seen outside the library ...
Scolopendrid asked 13/9, 2008 at 14:30

2

Solved

I'm writing a simple program in Go as an exercise to learn the language. The program is a game player: it exec.Commands a text-based game, then communicates with it via StdinPipe/StdoutPipe. After ...

5

Solved

Is there any difference in Data Abstraction and Information hiding? After going through all the answers in this link I am more confused. Abstraction VS Information Hiding VS Encapsulation Couldn't...
Adamsun asked 29/8, 2011 at 18:52

8

Solved

Is it really impossible to hide some classes in a jar file? I wanted not to allow direct instantiation of the classes to keep it more flexible. Only the factory (or a facade) should be visible of ...
Triolet asked 21/1, 2011 at 14:5

1

Solved

Possible Duplicate: What are the differences between struct and class in C++ http://www.cplusplus.com/reference/std/typeinfo/type_info/ I guess my "teacher" didn't tell me a lot abou...
Bewley asked 2/10, 2010 at 11:58

5

Solved

I'm currently building an ASP.NET MVC project, with NHibernate as its persistance layer. For now, some functionality have been implemented, but only use local NHibernate sessions: each method that...
Laktasic asked 12/1, 2010 at 1:51

5

Solved

"Abstraction and encapsulation are complementary concepts: abstraction focuses on the observable behavior of an object... encapsulation focuses upon the implementation that gives rise to this behav...

11

Solved

What is the best way to store data between program runs in Java? I already know that you can use a text file and store the information that way, but I was wondering if there is a better way to stor...
Frown asked 16/8, 2009 at 19:28

5

Solved

I'm trying to convince a colleague that a function should take an interface as a parameter, and not the object itself. I think small objects can be fine to pass across, but for large ones I would g...
1

© 2022 - 2025 — McMap. All rights reserved.